Documentation
¶
Index ¶
Constants ¶
View Source
const ErrImageNotAllowedIdentifier = "not allowed by any ImageAllowRule"
Variables ¶
This section is empty.
Functions ¶
func CheckImageAgainstRules ¶
func CheckImageAgainstRules(ctx context.Context, c client.Reader, namespace string, image string, digest string, imageAllowRules []v1.ImageAllowRuleInstance, keychain authn.Keychain, opts ...remote.Option) error
CheckImageAgainstRules checks if the image is allowed by the given ImageAllowRules If no rules are given, the image is - DENIED if strict mode (deny-by-default) is enabled - ALLOWED if strict mode is disabled (the default) ! Only one single rule has to allow the image for this to pass !
Types ¶
type ErrImageNotAllowed ¶
type ErrImageNotAllowed struct {
Image string
}
func (*ErrImageNotAllowed) Error ¶
func (e *ErrImageNotAllowed) Error() string
func (*ErrImageNotAllowed) Is ¶
func (e *ErrImageNotAllowed) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.