v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 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 PolicyLister

type PolicyLister interface {
	// List lists all Policies in the indexer.
	List(selector labels.Selector) (ret []*v1alpha1.Policy, err error)
	// Get retrieves the Policy from the index for a given name.
	Get(name string) (*v1alpha1.Policy, error)
	PolicyListerExpansion
}

PolicyLister helps list Policies.

func NewPolicyLister

func NewPolicyLister(indexer cache.Indexer) PolicyLister

NewPolicyLister returns a new PolicyLister.

type PolicyListerExpansion

type PolicyListerExpansion interface {
	GetPolicyForPolicyViolation(pv *kyverno.PolicyViolation) ([]*kyverno.Policy, error)
	ListResources(selector labels.Selector) (ret []*v1alpha1.Policy, err error)
}

PolicyListerExpansion allows custom methods to be added to PolicyLister.

type PolicyViolationLister

type PolicyViolationLister interface {
	// List lists all PolicyViolations in the indexer.
	List(selector labels.Selector) (ret []*v1alpha1.PolicyViolation, err error)
	// Get retrieves the PolicyViolation from the index for a given name.
	Get(name string) (*v1alpha1.PolicyViolation, error)
	PolicyViolationListerExpansion
}

PolicyViolationLister helps list PolicyViolations.

func NewPolicyViolationLister

func NewPolicyViolationLister(indexer cache.Indexer) PolicyViolationLister

NewPolicyViolationLister returns a new PolicyViolationLister.

type PolicyViolationListerExpansion

type PolicyViolationListerExpansion interface {
	// List lists all PolicyViolations in the indexer with GVK.
	// List lists all PolicyViolations in the indexer with GVK.
	ListResources(selector labels.Selector) (ret []*v1alpha1.PolicyViolation, err error)
}

PolicyViolationListerExpansion allows custom methods to be added to PolicyViolationLister.

Jump to

Keyboard shortcuts

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