Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalid is used to return error if reference is invalid ErrInvalid = errors.New("invalid reference") )
Functions ¶
func IsCanonicalDigested ¶
IsCanonicalDigested return true if the ref is the canonical digested reference.
func IsNameTagged ¶
IsNameTagged return true if the ref is the Named with tag.
func IsNamedOnly ¶
IsNamedOnly return true if the ref is the Named without tag or digest.
Types ¶
type CanonicalDigested ¶
CanonicalDigested is an object which doesn't contains the tag information.
type Named ¶
Named is an object which has full name.
func TrimTagForDigest ¶
TrimTagForDigest removes the tag information if the Named reference is digest.
func WithDefaultTagIfMissing ¶
WithDefaultTagIfMissing adds default tag "latest" for the Named reference.
func WithDigest ¶
WithDigest adds digest for the Named reference.
Click to show internal directories.
Click to hide internal directories.