rules

package
v0.0.0-...-7c5911e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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               reference.DockerImageReference
	Image              *imagev1.Image
	ExcludedRules      sets.String
	IntegratedRegistry bool
	LocalRewrite       bool
}

type RegistryMatcher

type RegistryMatcher interface {
	Matches(name string) bool
}

func NewRegistryMatcher

func NewRegistryMatcher(names []string) RegistryMatcher

type RegistryNameMatcher

type RegistryNameMatcher string

func (RegistryNameMatcher) Matches

func (m RegistryNameMatcher) Matches(name string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL