Documentation
¶
Overview ¶
Package containers provides functions to replace tags for checksums
Index ¶
- func GetDigest(ctx context.Context, refstr string) (string, error)
- func GetDigestFromRef(ctx context.Context, ref name.Reference) (string, error)
- func ReplaceImageReferenceFromYAML(ctx context.Context, input io.Reader, output io.Writer) (bool, error)
- func ReplaceReferenceFromYAML(ctx context.Context, keyRegex string, input io.Reader, output io.Writer) (bool, error)
- func ReplaceReferenceFromYAMLWithCache(ctx context.Context, keyRegex string, input io.Reader, output io.Writer, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDigestFromRef ¶
GetDigestFromRef returns the digest of a container image reference from a name.Reference.
func ReplaceImageReferenceFromYAML ¶
func ReplaceImageReferenceFromYAML(ctx context.Context, input io.Reader, output io.Writer) (bool, error)
ReplaceImageReferenceFromYAML replaces the image reference in the input text with the digest
func ReplaceReferenceFromYAML ¶
func ReplaceReferenceFromYAML(ctx context.Context, keyRegex string, input io.Reader, output io.Writer) (bool, error)
ReplaceReferenceFromYAML replaces the image reference in the input text with the digest
func ReplaceReferenceFromYAMLWithCache ¶ added in v0.0.7
func ReplaceReferenceFromYAMLWithCache( ctx context.Context, keyRegex string, input io.Reader, output io.Writer, cache utils.RefCacher) (bool, error)
ReplaceReferenceFromYAMLWithCache replaces the image reference in the input text with the digest and uses the provided cache to store the digests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.