Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromReferenceSuffix ¶
FromReferenceSuffix returns the digest from a name@digest reference.
Types ¶
type CheckResult ¶
type CheckResult struct {
NeedsUpdate bool
LocalDigest string
RemoteDigest string
Error error
CheckedViaAPI bool
}
CheckResult contains the result of a digest check.
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker compares local image digests with remote digests.
func NewChecker ¶
func NewChecker(dcli *client.Client, digestResolver RemoteResolver) *Checker
NewChecker creates a digest checker.
func (*Checker) CheckImageNeedsUpdate ¶
func (c *Checker) CheckImageNeedsUpdate(ctx context.Context, imageRef string) CheckResult
CheckImageNeedsUpdate compares local and remote digests for an image.
Click to show internal directories.
Click to hide internal directories.