image

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseImage

func ParseImage(image string) (imageName string, tag string, digest string, err error)

ParseImage parses a container image string and returns the image name, tag, and digest. If no tag is specified, it defaults to "latest". If a digest is present, it is returned as well. Examples of valid image strings: - "nginx:1.19.0" -> imageName: "nginx", tag: "1.19.0", digest: "" - "nginx" -> imageName: "nginx", tag: "latest", digest: "" - "nginx@sha256:abcdef..." -> imageName: "nginx", tag: "", digest: "sha256:abcdef..." - "nginx:1.19.0@sha256:abcdef..." -> imageName: "nginx", tag: "1.19.0", digest: "sha256:abcdef..."

Types

This section is empty.

Jump to

Keyboard shortcuts

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