policystore

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 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 LookupInterface added in v1.0.0

type LookupInterface interface {
	// Lookup based on kind and namespaces
	LookUp(kind, namespace string) ([]kyverno.ClusterPolicy, error)
}

LookupInterface provides api to lookup policies

type PolicyStore added in v1.0.0

type PolicyStore struct {
	// contains filtered or unexported fields
}

PolicyStore Store the meta-data information to faster lookup policies

func NewPolicyStore added in v1.0.0

func NewPolicyStore(pInformer kyvernoinformer.ClusterPolicyInformer) *PolicyStore

NewPolicyStore returns a new policy store

func (*PolicyStore) LookUp added in v1.0.0

func (ps *PolicyStore) LookUp(kind, namespace string) ([]kyverno.ClusterPolicy, error)

LookUp look up the resources

func (*PolicyStore) Register added in v1.0.0

func (ps *PolicyStore) Register(policy kyverno.ClusterPolicy)

Register a new policy

func (*PolicyStore) Run added in v1.1.0

func (ps *PolicyStore) Run(stopCh <-chan struct{})

Run checks syncing

func (*PolicyStore) UnRegister added in v1.0.0

func (ps *PolicyStore) UnRegister(policy kyverno.ClusterPolicy) error

UnRegister Remove policy information

type UpdateInterface added in v1.0.0

type UpdateInterface interface {
	// Register a new policy
	Register(policy kyverno.ClusterPolicy)
	// Remove policy information
	UnRegister(policy kyverno.ClusterPolicy) error
}

UpdateInterface provides api to update policies

Jump to

Keyboard shortcuts

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