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)
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.
Click to show internal directories.
Click to hide internal directories.