registry

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: BSD-2-Clause Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Digest

type Digest int
const (
	// Uses the digest, if it's available. Older versions of Docker do not
	// always populate the digests.
	//
	// See https://github.com/moby/moby/issues/15508
	DigestsPrefer Digest = iota

	// Always use the digest, and return an error if the image doesn't have
	// one. The most secure option (and prefered).
	DigestsOnly

	// Disabling digests entirely, and just use the mutable tag. Unsecure,
	// and not recommended.
	DigestsDisable
)

type DockerDaemonRegistry

type DockerDaemonRegistry struct {
	// Controls whether digests are preferred, enforced, or disabled. See
	// above for available options.
	Digests Digest
	// contains filtered or unexported fields
}

DockerDaemonRegistry is an implementation of the empire.ImageRegistry interface backed by a local Docker daemon.

func DockerDaemon

func DockerDaemon(c *dockerutil.Client) *DockerDaemonRegistry

DockerDaemon returns an empire.ImageRegistry that uses a local Docker Daemon to extract procfiles and resolve images.

func (*DockerDaemonRegistry) ExtractProcfile

func (r *DockerDaemonRegistry) ExtractProcfile(ctx context.Context, img image.Image, w *jsonmessage.Stream) ([]byte, error)

func (*DockerDaemonRegistry) Resolve

type NoDigestError

type NoDigestError struct {
	Image string
}

NoDigestError can be returned if image digests are enforce, and the image doesn't have an immutable digest.

func (*NoDigestError) Error

func (e *NoDigestError) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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