Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchImage ¶ added in v1.14.1
func MatchImage(image string, c ...compiler.MatchImageReference) (bool, error)
Types ¶
type MatchCriteria ¶
type MatchCriteria struct {
Constraints *admissionregistrationv1.MatchResources
}
func (*MatchCriteria) GetMatchResources ¶
func (m *MatchCriteria) GetMatchResources() admissionregistrationv1.MatchResources
GetMatchResources returns the matchConstraints
func (*MatchCriteria) GetParsedNamespaceSelector ¶
func (m *MatchCriteria) GetParsedNamespaceSelector() (labels.Selector, error)
GetParsedNamespaceSelector returns the converted LabelSelector which implements labels.Selector
func (*MatchCriteria) GetParsedObjectSelector ¶
func (m *MatchCriteria) GetParsedObjectSelector() (labels.Selector, error)
GetParsedObjectSelector returns the converted LabelSelector which implements labels.Selector
type Matcher ¶
type Matcher interface {
Match(matching.MatchCriteria, admission.Attributes, runtime.Object) (bool, error)
}
func NewMatcher ¶
func NewMatcher() Matcher
Click to show internal directories.
Click to hide internal directories.