Documentation ¶
Index ¶
- Variables
- type ContainerConfig
- type Error
- type Layer
- type RegistryClient
- func (client *RegistryClient) DeleteRepository(repo string) error
- func (client *RegistryClient) DeleteTag(repo string, tag string) error
- func (client *RegistryClient) Layer(id string) (*Layer, error)
- func (client *RegistryClient) Repository(name string) (*Repository, error)
- func (client *RegistryClient) Search(query string, page int, numResults int) (*SearchResult, error)
- type Repo
- type Repository
- type SearchResult
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("Not found")
)
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { dockerclient.ContainerConfig Cmd []string `json:"Cmd,omitempty"` }
type Layer ¶
type Layer struct { ID string `json:"id,omitempty"` Parent string `json:"parent,omitempty"` Created *time.Time `json:"created,omitempty"` Container string `json:"container,omitempty"` ContainerConfig *ContainerConfig `json:"container_config,omitempty"` DockerVersion string `json:"docker_version,omitempty"` Author string `json:"author,omitempty"` Architecture string `json:"architecture,omitempty"` OS string `json:"os,omitempty"` Size int64 `json:"size,omitempty"` Ancestry []string `json:"ancestry,omitempty"` }
type RegistryClient ¶
func NewRegistryClient ¶
func NewRegistryClient(registryUrl string, tlsConfig *tls.Config) (*RegistryClient, error)
func (*RegistryClient) DeleteRepository ¶
func (client *RegistryClient) DeleteRepository(repo string) error
func (*RegistryClient) DeleteTag ¶
func (client *RegistryClient) DeleteTag(repo string, tag string) error
func (*RegistryClient) Repository ¶
func (client *RegistryClient) Repository(name string) (*Repository, error)
func (*RegistryClient) Search ¶
func (client *RegistryClient) Search(query string, page int, numResults int) (*SearchResult, error)
type Repository ¶
type Repository struct { Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Repository string `json:"repository,omitempty"` Tags []Tag `json:"tags,omitempty"` Layers []Layer `json:"layers,omitempty"` Size int64 `json:"size,omitempty"` }
type SearchResult ¶
type SearchResult struct { NumberOfResults int `json:"num_results,omitempty"` Query string `json:"string,omitempty"` Results []*Repository `json:"results,omitempty"` }
Click to show internal directories.
Click to hide internal directories.