Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service connects to the Docker Hub over the internet
func NewMockService ¶
NewMockService is for testing
type TokenAuthClient ¶
type TokenAuthClient struct {
// contains filtered or unexported fields
}
TokenAuthClient is associated with a particular org / image
func NewTokenAuth ¶
func NewTokenAuth(i Image, rs *Service) (t *TokenAuthClient, err error)
func (*TokenAuthClient) GetImageDownloadSize ¶
func (t *TokenAuthClient) GetImageDownloadSize(m Manifest) (size int64, layerSizes []int64, err error)
GetImageDownloadSize gets the download size of the image. The total size is returned as well as an array with the size of each layer. Only layers that affect the filesystem generate a new blob. If the blob already exists for the image the layer size will be 0. The blobs are gzip compressed so the size on disk will be larger.
func (*TokenAuthClient) GetManifest ¶
func (t *TokenAuthClient) GetManifest(tag string) (manifest Manifest, body []byte, err error)
func (*TokenAuthClient) GetTags ¶
func (t *TokenAuthClient) GetTags() (tags []string, err error)
type V1Compatibility ¶
Click to show internal directories.
Click to hide internal directories.