Help us shape the future of Go! Take the 2026 Go Developer Survey

image

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerTagMaxSize = 128
)

Functions

func CheckPushPermissions

func CheckPushPermissions(ctx context.Context, image string) error

func GetImage

func GetImage(ctx context.Context, image string) (v1.Image, error)

func GetImageConfig

func GetImageConfig(
	ctx context.Context,
	image string,
) (*v1.ConfigFile, v1.Image, error)

func GetImageConfigForArch

func GetImageConfigForArch(
	ctx context.Context,
	image, arch string,
) (*v1.ConfigFile, v1.Image, error)

func GetImageForArch

func GetImageForArch(ctx context.Context, image, arch string) (v1.Image, error)

func GetImagePlatforms added in v1.3.1

func GetImagePlatforms(ctx context.Context, image string) ([]string, error)

GetImagePlatforms returns the "os/arch" platforms a remote image reference supports. Multi-arch indexes return every entry; single-image manifests fall back to the config file's OS/Architecture.

func GetKeychain

func GetKeychain(ctx context.Context) (authn.Keychain, error)

func IsValidDockerTag

func IsValidDockerTag(tag string) bool

func SanitizeRegistryError added in v1.1.0

func SanitizeRegistryError(err error) error

func ValidateTags

func ValidateTags(tags []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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