containers

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package containers provides functions to replace tags for checksums

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDigest

func GetDigest(ctx context.Context, refstr string) (string, error)

GetDigest returns the digest of a container image reference.

func GetDigestFromRef

func GetDigestFromRef(ctx context.Context, ref name.Reference) (string, error)

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.

Jump to

Keyboard shortcuts

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