Documentation ¶
Index ¶
- func GetAuthorization(ctx context.Context, source AuthorizationSource) ([]authorizationSignature, error)
- func GetK8sResource(ecp *ecc.EnterpriseContractPolicySpec) (authorizationGetter, error)
- func PrintAuthorization(authorization []authorizationSignature) error
- func ValidateImage(ctx context.Context, url string, p policy.Policy, detailed bool) (*output.Output, error)
- type AuthorizationSource
- type ImageReference
- type K8sSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorization ¶
func GetAuthorization(ctx context.Context, source AuthorizationSource) ([]authorizationSignature, error)
func GetK8sResource ¶
func GetK8sResource(ecp *ecc.EnterpriseContractPolicySpec) (authorizationGetter, error)
func PrintAuthorization ¶
func PrintAuthorization(authorization []authorizationSignature) error
Types ¶
type AuthorizationSource ¶
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 ¶
func ParseAndResolve(url string, opts ...name.Option) (*ImageReference, error)
ParseAndResolve parses the url into an ImageReference object. The digest is resolved if needed.
func ParseAndResolveAll ¶
func ParseAndResolveAll(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
type K8sSource ¶
type K8sSource struct {
// contains filtered or unexported fields
}
holds config information to get client instance
func NewK8sSource ¶
Click to show internal directories.
Click to hide internal directories.