rules

package
Version: v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 7 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(schema.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           schema.GroupResource
	Name               imageapi.DockerImageReference
	Image              *imageapi.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 func() (string, bool)

func (RegistryNameMatcher) Matches

func (m RegistryNameMatcher) Matches(name string) bool

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL