Documentation ¶
Index ¶
Constants ¶
View Source
const RemoteHead key = "ec.image.remoteHead"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageReference ¶
type ImageReference struct { Repository string Digest string Tag string // contains filtered or unexported fields }
func NewImageReference ¶
func NewImageReference(url string, opts ...name.Option) (*ImageReference, error)
NewImageReference returns an ImageReference instance based on the given url.
func ParseAndResolve ¶
ParseAndResolve parses the url into an ImageReference object. The digest is resolved if needed.
func ParseAndResolveAll ¶
func ParseAndResolveAll(ctx context.Context, urls []string, opts ...name.Option) ([]ImageReference, error)
ParseAndResolveAll is like ParseAndResolve, but for a list of urls.
func (ImageReference) Ref ¶
func (i ImageReference) Ref() name.Reference
func (*ImageReference) String ¶
func (i *ImageReference) String() string
Click to show internal directories.
Click to hide internal directories.