docker

package
v0.2.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCodeMetadataUnknown = docker.Register("errcode", docker.ErrorDescriptor{
	Value:          "METADATA_UNKNOWN",
	Message:        "the specified metadata does not exist",
	Description:    `This is the error when the metadata requested does not exist.`,
	HTTPStatusCode: http.StatusNotFound,
})

ErrorCodeMetadataUnknown is returned when requested metadata does not exist

Functions

func NewOpts

func NewOpts(options *docker.ResolverOptions) *docker.ResolverOptions

NewResolver returns a new resolver to a Docker registry

func PushContent

func PushContent(ctx context.Context, pusher remotes.Pusher, desc ocispec.Descriptor, store content.Store, limiter *semaphore.Weighted, platform platforms.MatchComparer, wrapper func(h images.Handler) images.Handler) error

PushContent pushes content specified by the descriptor from the provider.

Base handlers can be provided which will be called before any push specific handlers.

func WithDiscover

func WithDiscover(ref string, resolver remotes.Resolver, opts *docker.ResolverOptions) (remotes.Resolver, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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