Help us shape the future of Go! Take the 2026 Go Developer Survey

rules

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: Apache-2.0 Imports: 6 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(unversioned.GroupResource) bool

	Accepts(*ImagePolicyAttributes) bool
}

func NewExecutionRulesAccepter

func NewExecutionRulesAccepter(rules []api.ImageExecutionPolicyRule, integratedRegistryMatcher RegistryMatcher) (Accepter, error)

NewExecutionRuleseAccepter creates an Accepter from the provided rules.

type ImagePolicyAttributes

type ImagePolicyAttributes struct {
	Resource           unversioned.GroupResource
	Name               imageapi.DockerImageReference
	Image              *imageapi.Image
	ExcludedRules      sets.String
	IntegratedRegistry bool
}

type RegistryMatcher

type RegistryMatcher interface {
	Matches(name string) bool
}

func NewRegistryMatcher

func NewRegistryMatcher(names []string) RegistryMatcher

type RegistryNameMatcher

type RegistryNameMatcher imageapi.DefaultRegistryFunc

func (RegistryNameMatcher) Matches

func (m RegistryNameMatcher) Matches(name string) bool

Source Files

  • accept.go
  • rules.go

Jump to

Keyboard shortcuts

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