docker

package
v0.130.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalImageRef added in v0.122.0

func CanonicalImageRef(image string) (string, error)

CanonicalImageRef tries to parse provided image reference and return canonical image reference instead, i.e. image reference that have qualified repository path and image name If it's not possible to normalize image reference - empty string and error returned Extracted from k8sattributesprocessor for future reuse

func LogParseError

func LogParseError(err error, image string, logger *zap.Logger)

Types

type ImageRef

type ImageRef struct {
	Repository      string
	Tag             string
	Digest          string
	DigestAlgorithm string
}

func ParseImageName

func ParseImageName(image string) (ImageRef, error)

ParseImageName extracts image repository, tag, digest and digest algorithm from a combined image reference e.g. example.com:5000/alpine/alpine:test --> `example.com:5000/alpine/alpine` and `test`

Jump to

Keyboard shortcuts

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