dtr

package
v0.0.0-...-8073d5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Username   string
	Password   string
	DTRURL     string
	IgnoreCert bool
	Token      string
}

Client - Is the basic Client struct

func NewBasicAuthClient

func NewBasicAuthClient(username, password, url string, ignoreCert bool) *Client

NewBasicAuthClient - Creates a basic client to connecto the DTR

func ReadToken

func ReadToken() (*Client, error)

ReadToken - Reads the token from a file

func (*Client) Connect

func (c *Client) Connect() error

Connect - Will attempt to connect to DTR

func (*Client) CreateRepository

func (c *Client) CreateRepository(repo dtrtypes.DTRRepository) error

CreateRepository -

func (*Client) CreateWebhook

func (c *Client) CreateWebhook(webhook dtrtypes.DTRWebHook) error

CreateWebhook -

func (*Client) DTRClusterStatus

func (c *Client) DTRClusterStatus() (*dtrtypes.DTRSettings, error)

DTRClusterStatus -

func (*Client) DTRCreateRepoOnPush

func (c *Client) DTRCreateRepoOnPush(enabled bool) error

DTRCreateRepoOnPush - This will toggle the functionality to enable repositories to be created on push

func (*Client) DTRGetSettings

func (c *Client) DTRGetSettings() (*dtrtypes.DTRSettings, error)

DTRGetSettings - Return a struct of all DTR settings

func (*Client) DTROnlineScan

func (c *Client) DTROnlineScan(enabled bool) error

DTROnlineScan - This will toggle the functionality to Sync online

func (*Client) DTRScanningEnable

func (c *Client) DTRScanningEnable(enabled bool) error

DTRScanningEnable - This will toggle the functionality to enable Image Scanning

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(repo dtrtypes.DTRRepository) error

DeleteRepository -

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(id string) error

DeleteWebhook -

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect - TODO

func (*Client) ListAllRepositories

func (c *Client) ListAllRepositories() ([]dtrtypes.DTRRepository, error)

ListAllRepositories -

func (*Client) ListReplicas

func (c *Client) ListReplicas() error

ListReplicas -

func (*Client) ListReposForNamespace

func (c *Client) ListReposForNamespace(ns string) ([]dtrtypes.DTRRepository, error)

ListReposForNamespace -

func (*Client) ListWebhooks

func (c *Client) ListWebhooks() ([]dtrtypes.DTRWebHook, error)

ListWebhooks -

func (*Client) WriteToken

func (c *Client) WriteToken() error

WriteToken - Writes a copy of the token to the

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL