image

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerReference added in v0.5.0

func DockerReference(name string) (types.ImageReference, error)

func Reference

func Reference(name string) (reference.Named, error)

Types

type Image

type Image struct {
	Domain string
	Path   string
	Tag    string
	Digest digest.Digest
	// contains filtered or unexported fields
}

Image holds information about an image.

func Parse

func Parse(name string) (Image, error)

Parse returns an Image struct with all the values filled in for a given image.

func (*Image) Name

func (i *Image) Name() string

Name returns the full name representation of an image.

func (*Image) Reference

func (i *Image) Reference() string

Reference returns either the digest if it is non-empty or the tag for the image.

func (*Image) String

func (i *Image) String() string

String returns the string representation of an image.

func (*Image) WithDigest

func (i *Image) WithDigest(digest digest.Digest) (err error)

WithDigest sets the digest for an image.

Jump to

Keyboard shortcuts

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