Documentation ¶
Index ¶
- func CheckDigest[E Digest](e E, digest string) error
- func CompareNameDigest(a, b NameDigest) int
- func FormatString(nd NameDigest) (string, error)
- func GetDigest[E Spec](e E) (string, error)
- func HasDigest(d Digest) bool
- func HasName(n Name) bool
- func SetCheckDigest[E CheckDigestable](e E, digest string) error
- func SetCheckNameDigest[E CheckDigestable](e E, name, digest string) error
- func SetDigest[E Digestable](e E) error
- func SetName[E Nameable](e E, name string)
- func SetNameDigest[E NameDigestable](e E, name string) error
- type CheckDigestable
- type Digest
- type Digestable
- type DummySpec
- type Name
- type NameDigest
- type NameDigestable
- type Nameable
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDigest ¶ added in v1.7.0
func CompareNameDigest ¶
func CompareNameDigest(a, b NameDigest) int
func FormatString ¶ added in v1.7.0
func FormatString(nd NameDigest) (string, error)
FormatString formats the entity as a valid "name@digest".
func SetCheckDigest ¶ added in v1.7.0
func SetCheckDigest[E CheckDigestable](e E, digest string) error
func SetCheckNameDigest ¶ added in v1.8.0
func SetCheckNameDigest[E CheckDigestable](e E, name, digest string) error
func SetDigest ¶ added in v1.7.0
func SetDigest[E Digestable](e E) error
func SetNameDigest ¶ added in v1.7.0
func SetNameDigest[E NameDigestable](e E, name string) error
Types ¶
type CheckDigestable ¶ added in v1.7.0
type CheckDigestable interface { NameDigestable Digest }
type Digestable ¶ added in v1.7.0
type NameDigest ¶
func Key ¶ added in v1.7.0
func Key[E NameDigest](e E) NameDigest
func KeyLit ¶ added in v1.7.0
func KeyLit(name, digest string) NameDigest
func ParseNameDigest ¶
func ParseNameDigest(s string) (nameDigest NameDigest, err error)
type NameDigestable ¶ added in v1.7.0
type NameDigestable interface { Nameable Digestable }
Click to show internal directories.
Click to hide internal directories.