containers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 8 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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