Documentation
¶
Index ¶
- Constants
- type AuthConfig
- type Client
- func (c *Client) Close()
- func (c *Client) DoRequest(ctx context.Context, method, urlStr string, headers map[string]string, ...) (*http.Response, error)
- func (c *Client) DownloadBlob(registry, name, digest string, writer io.Writer) error
- func (c *Client) GetBlob(registry, name, digest string) ([]byte, error)
- func (c *Client) GetConfig(registry, name string, manifest *ManifestV2) ([]byte, error)
- func (c *Client) GetManifest(registry, name, reference string) (*ManifestV2, string, error)
- func (c *Client) GetTags(registry, repository string) (*TagList, error)
- func (c *Client) HeadBlob(registry, name, digest string) (int64, error)
- func (c *Client) Ping(registry string) error
- func (c *Client) Push(registry, name, tag string, manifest *ManifestV2, config []byte, ...) error
- func (c *Client) ResolveManifest(registry, name, reference string) (*ManifestV2, string, error)
- func (c *Client) SetAuth(username, password string)
- type ImageRef
- type ManifestBlob
- type ManifestList
- type ManifestListEntry
- type ManifestV2
- type Platform
- type TagList
Constants ¶
View Source
const ( DefaultRegistry = "registry-1.docker.io" DefaultTag = "latest" AuthService = "registry.docker.io" AuthRealm = "https://auth.docker.io/token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DownloadBlob ¶
func (*Client) GetConfig ¶
func (c *Client) GetConfig(registry, name string, manifest *ManifestV2) ([]byte, error)
func (*Client) GetManifest ¶
func (c *Client) GetManifest(registry, name, reference string) (*ManifestV2, string, error)
func (*Client) ResolveManifest ¶
func (c *Client) ResolveManifest(registry, name, reference string) (*ManifestV2, string, error)
ResolveManifest resolves a manifest for the current platform (linux/arm64 preferred).
type ImageRef ¶
func ParseImageRef ¶
type ManifestBlob ¶
type ManifestList ¶
type ManifestList struct {
SchemaVersion int `json:"schemaVersion"`
MediaType string `json:"mediaType"`
Manifests []ManifestListEntry `json:"manifests"`
}
type ManifestListEntry ¶
type ManifestV2 ¶
type ManifestV2 struct {
SchemaVersion int `json:"schemaVersion"`
MediaType string `json:"mediaType"`
Config ManifestBlob `json:"config"`
Layers []ManifestBlob `json:"layers"`
Annotations map[string]string `json:"annotations,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.