Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accepter ¶
type Accepter interface { Covers(metav1.GroupResource) bool Accepts(*ImagePolicyAttributes) bool }
func NewExecutionRulesAccepter ¶
func NewExecutionRulesAccepter(rules []imagepolicy.ImageExecutionPolicyRule, integratedRegistryMatcher RegistryMatcher) (Accepter, error)
NewExecutionRuleseAccepter creates an Accepter from the provided rules.
type ImagePolicyAttributes ¶
type ImagePolicyAttributes struct { Resource metav1.GroupResource Name imageapi.DockerImageReference Image *imageapi.Image ExcludedRules sets.String IntegratedRegistry bool LocalRewrite bool }
type RegistryMatcher ¶
func NewRegistryMatcher ¶
func NewRegistryMatcher(names []string) RegistryMatcher
type RegistryNameMatcher ¶
func (RegistryNameMatcher) Matches ¶
func (m RegistryNameMatcher) Matches(name string) bool
Click to show internal directories.
Click to hide internal directories.