v1

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 Error

type Error struct {
	StatusCode int
	Status     string
	// contains filtered or unexported fields
}

func (Error) Error

func (e Error) Error() string

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

type RegistryClient struct {
	URL *url.URL
	// contains filtered or unexported fields
}

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) Layer

func (client *RegistryClient) Layer(id string) (*Layer, 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 Repo

type Repo struct {
	Namespace  string
	Repository string
}

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"`
}

type Tag

type Tag struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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