resto

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MediaTypeConfig = "application/vndr.docker.config"

MediaTypeConfig is the media type used for configuration files.

Variables

This section is empty.

Functions

func ListRepositories

func ListRepositories(ctx context.Context, endpoint string, opts RegistryOptions) ([]string, error)

ListRepositories lists all the repositories in a registry

func ListTags

func ListTags(ctx context.Context, reponame string, opts RegistryOptions) ([]string, error)

ListTags lists all the tags in a repository

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

func PullConfig(ctx context.Context, repoTag string, opts RegistryOptions) (string, error)

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

func PushConfigMulti

func PushConfigMulti(ctx context.Context, payload map[string]string, repoTag string, opts RegistryOptions, labels map[string]string) (string, error)

PushConfigMulti pushes a set of configuration files 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

type ManifestAny struct {
	manifest.Versioned
	Payload string `json:"payload,omitempty"`
}

ManifestAny is a manifest type for arbitrary configuration data

type RegistryOptions

type RegistryOptions struct {
	Username             string
	Password             string
	Insecure             bool
	CleartextCredentials bool
}

RegistryOptions contains optional configuration for Registry operations

Jump to

Keyboard shortcuts

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