Documentation
¶
Overview ¶
Package images finds the container images manifests run, normalises their references and pins them by digest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Covered ¶
Covered reports whether image, as a chart renders it, is one of the pinned images: the same repository and digest, or the same repository and tag.
func FromManifests ¶
FromManifests lists, normalised and sorted, the images that containers in the given YAML manifests run.
Types ¶
type Resolver ¶
type Resolver struct {
// CredentialsFile is a Docker config with registry credentials;
// empty means anonymous access.
CredentialsFile string
// PlainHTTP talks to registries without TLS (test registries only).
PlainHTTP bool
// PlainHTTPRegistries are registry hosts, host or host:port, reached
// without TLS; the others keep it.
PlainHTTPRegistries []string
}
Resolver looks up the digests of image tags.
func (Resolver) Pin ¶
Pin returns ref with the digest its tag points at now; a reference that already has a digest is returned as it is.
func (Resolver) Repository ¶
func (r Resolver) Repository(name string) (*remote.Repository, error)
Repository opens an image repository, registry/path, mapping docker.io to its registry host.
Click to show internal directories.
Click to hide internal directories.