Documentation ¶
Index ¶
- type Client
- func (c *Client) Connect() error
- func (c *Client) CreateRepository(repo dtrtypes.DTRRepository) error
- func (c *Client) CreateWebhook(webhook dtrtypes.DTRWebHook) error
- func (c *Client) DTRClusterStatus() (*dtrtypes.DTRSettings, error)
- func (c *Client) DTRCreateRepoOnPush(enabled bool) error
- func (c *Client) DTRGetSettings() (*dtrtypes.DTRSettings, error)
- func (c *Client) DTROnlineScan(enabled bool) error
- func (c *Client) DTRScanningEnable(enabled bool) error
- func (c *Client) DeleteRepository(repo dtrtypes.DTRRepository) error
- func (c *Client) DeleteWebhook(id string) error
- func (c *Client) Disconnect() error
- func (c *Client) ListAllRepositories() ([]dtrtypes.DTRRepository, error)
- func (c *Client) ListReplicas() error
- func (c *Client) ListReposForNamespace(ns string) ([]dtrtypes.DTRRepository, error)
- func (c *Client) ListWebhooks() ([]dtrtypes.DTRWebHook, error)
- func (c *Client) WriteToken() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client - Is the basic Client struct
func NewBasicAuthClient ¶
NewBasicAuthClient - Creates a basic client to connecto the DTR
func (*Client) CreateRepository ¶
CreateRepository -
func (*Client) CreateWebhook ¶
CreateWebhook -
func (*Client) DTRClusterStatus ¶
DTRClusterStatus -
func (*Client) DTRCreateRepoOnPush ¶
DTRCreateRepoOnPush - This will toggle the functionality to enable repositories to be created on push
func (*Client) DTRGetSettings ¶
DTRGetSettings - Return a struct of all DTR settings
func (*Client) DTROnlineScan ¶
DTROnlineScan - This will toggle the functionality to Sync online
func (*Client) DTRScanningEnable ¶
DTRScanningEnable - This will toggle the functionality to enable Image Scanning
func (*Client) DeleteRepository ¶
DeleteRepository -
func (*Client) ListAllRepositories ¶
ListAllRepositories -
func (*Client) ListReposForNamespace ¶
ListReposForNamespace -
func (*Client) ListWebhooks ¶
ListWebhooks -
func (*Client) WriteToken ¶
WriteToken - Writes a copy of the token to the
Source Files ¶
Click to show internal directories.
Click to hide internal directories.