Documentation ¶
Index ¶
- Constants
- func ListRepositories(ctx context.Context, endpoint string, opts RegistryOptions) ([]string, error)
- func ListTags(ctx context.Context, reponame string, opts RegistryOptions) ([]string, error)
- func NewRepository(ctx context.Context, endpoint string, repository string, opts RegistryOptions) (distribution.Repository, error)
- func NewTransportCatalog(endpoint string, opts RegistryOptions) (http.RoundTripper, error)
- func PullConfig(ctx context.Context, repoTag string, opts RegistryOptions) (string, error)
- func PullConfigMulti(ctx context.Context, repoTag string, opts RegistryOptions) (map[string]string, error)
- func PushConfig(ctx context.Context, payload, repoTag string, opts RegistryOptions, ...) (string, error)
- func PushConfigMulti(ctx context.Context, payload map[string]string, repoTag string, ...) (string, error)
- type ConfigManifest
- type ManifestAny
- type RegistryOptions
Constants ¶
const MediaTypeConfig = "application/vndr.docker.config"
MediaTypeConfig is the media type used for configuration files.
Variables ¶
This section is empty.
Functions ¶
func ListRepositories ¶
ListRepositories lists all the repositories in a registry
func NewRepository ¶
func NewRepository(ctx context.Context, endpoint string, repository string, opts RegistryOptions) (distribution.Repository, error)
NewRepository instantiates a distribution.Repository pointing to the given target, with credentials
func NewTransportCatalog ¶
func NewTransportCatalog(endpoint string, opts RegistryOptions) (http.RoundTripper, error)
NewTransportCatalog returns a transport suitable for a catalog operation
func PullConfig ¶
PullConfig pulls a configuration file from a registry
func PullConfigMulti ¶
func PullConfigMulti(ctx context.Context, repoTag string, opts RegistryOptions) (map[string]string, error)
PullConfigMulti pulls a set of configuration files from a registry
func PushConfig ¶
func PushConfig(ctx context.Context, payload, repoTag string, opts RegistryOptions, labels map[string]string) (string, error)
PushConfig pushes a configuration file to a registry and returns its digest
Types ¶
type ConfigManifest ¶
type ConfigManifest struct {
// contains filtered or unexported fields
}
ConfigManifest is a Manifest type holding arbitrary data.
func NewConfigManifest ¶
func NewConfigManifest(mediaType string, payload []byte) *ConfigManifest
NewConfigManifest creates and returns an new ConfigManifest.
func (*ConfigManifest) Payload ¶
func (c *ConfigManifest) Payload() (string, []byte, error)
Payload returns the mediatype and payload of this manifest.
func (*ConfigManifest) References ¶
func (c *ConfigManifest) References() []distribution.Descriptor
References returns the objects this Manifest refers to.
type ManifestAny ¶
ManifestAny is a manifest type for arbitrary configuration data