Documentation ¶
Index ¶
Constants ¶
View Source
const RemoteHead key = "ec.image.remoteHead"
Variables ¶
This section is empty.
Functions ¶
func ValidateImage ¶
func ValidateImage(ctx context.Context, comp app.SnapshotComponent, snap *app.SnapshotSpec, p policy.Policy, evaluators []evaluator.Evaluator, detailed bool) (*output.Output, error)
ValidateImage executes the required method calls to evaluate a given policy against a given image url.
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.