Documentation ¶
Index ¶
- Variables
- func FileHashEqual(filename, hash string) (bool, error)
- func ParseRequestedImage(s string) *requestedImage
- func SaveToJson(file string, v interface{}) error
- type Client
- func (c *Client) GetBlob(tag digest.Digest, mediaTypeLayer string, resume int64) (*http.Response, error)
- func (c *Client) GetLayer(dir string, diffId digest.Digest, layerDesc distribution.Descriptor, ...) error
- func (c *Client) GetManifest(tag string) (*schema2.Manifest, string, error)
- func (c *Client) GetManifestList() (*manifestlist.ManifestList, error)
- func (c *Client) NewGetRequest(url string) (*http.Request, error)
- func (c *Client) SetCredentials(login, password string)
- type RegistryClient
- type WWWAuthenticate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrImageNotFound = fmt.Errorf("pull access denied, repository does not exist or may require login and password") ErrEmptyManifestList = fmt.Errorf("empty manifest list") )
Functions ¶
func FileHashEqual ¶
func ParseRequestedImage ¶
func ParseRequestedImage(s string) *requestedImage
func SaveToJson ¶
Types ¶
type Client ¶
type Client struct { *http.Client Image *requestedImage UA string // contains filtered or unexported fields }
func (*Client) GetLayer ¶
func (c *Client) GetLayer(dir string, diffId digest.Digest, layerDesc distribution.Descriptor, legacyImg image.V1Image, created time.Time) error
func (*Client) GetManifest ¶
func (*Client) GetManifestList ¶
func (c *Client) GetManifestList() (*manifestlist.ManifestList, error)
func (*Client) SetCredentials ¶
type RegistryClient ¶
func (*RegistryClient) Pull ¶
func (rc *RegistryClient) Pull(imageReq *requestedImage) error
type WWWAuthenticate ¶
type WWWAuthenticate struct {
Realm, Service, Scope string
}
func WWWAuthenticateParse ¶
func WWWAuthenticateParse(s string) (out WWWAuthenticate)
Click to show internal directories.
Click to hide internal directories.