v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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 ClusterPolicyLister

type ClusterPolicyLister interface {
	// List lists all ClusterPolicies in the indexer.
	List(selector labels.Selector) (ret []*v1.ClusterPolicy, err error)
	// Get retrieves the ClusterPolicy from the index for a given name.
	Get(name string) (*v1.ClusterPolicy, error)
	ClusterPolicyListerExpansion
}

ClusterPolicyLister helps list ClusterPolicies.

func NewClusterPolicyLister

func NewClusterPolicyLister(indexer cache.Indexer) ClusterPolicyLister

NewClusterPolicyLister returns a new ClusterPolicyLister.

type ClusterPolicyListerExpansion

type ClusterPolicyListerExpansion interface {
	GetPolicyForPolicyViolation(pv *kyvernov1.ClusterPolicyViolation) ([]*kyvernov1.ClusterPolicy, error)
	GetPolicyForNamespacedPolicyViolation(pv *kyvernov1.NamespacedPolicyViolation) ([]*kyvernov1.ClusterPolicy, error)
	ListResources(selector labels.Selector) (ret []*kyvernov1.ClusterPolicy, err error)
}

ClusterPolicyListerExpansion allows custom methods to be added to ClusterPolicyLister.

type ClusterPolicyViolationLister

type ClusterPolicyViolationLister interface {
	// List lists all ClusterPolicyViolations in the indexer.
	List(selector labels.Selector) (ret []*v1.ClusterPolicyViolation, err error)
	// Get retrieves the ClusterPolicyViolation from the index for a given name.
	Get(name string) (*v1.ClusterPolicyViolation, error)
	ClusterPolicyViolationListerExpansion
}

ClusterPolicyViolationLister helps list ClusterPolicyViolations.

func NewClusterPolicyViolationLister

func NewClusterPolicyViolationLister(indexer cache.Indexer) ClusterPolicyViolationLister

NewClusterPolicyViolationLister returns a new ClusterPolicyViolationLister.

type ClusterPolicyViolationListerExpansion

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

ClusterPolicyViolationListerExpansion allows custom methods to be added to ClusterPolicyViolationLister.

type NamespacedPolicyViolationLister

type NamespacedPolicyViolationLister interface {
	// List lists all NamespacedPolicyViolations in the indexer.
	List(selector labels.Selector) (ret []*v1.NamespacedPolicyViolation, err error)
	// NamespacedPolicyViolations returns an object that can list and get NamespacedPolicyViolations.
	NamespacedPolicyViolations(namespace string) NamespacedPolicyViolationNamespaceLister
	NamespacedPolicyViolationListerExpansion
}

NamespacedPolicyViolationLister helps list NamespacedPolicyViolations.

func NewNamespacedPolicyViolationLister

func NewNamespacedPolicyViolationLister(indexer cache.Indexer) NamespacedPolicyViolationLister

NewNamespacedPolicyViolationLister returns a new NamespacedPolicyViolationLister.

type NamespacedPolicyViolationListerExpansion

type NamespacedPolicyViolationListerExpansion interface{}

NamespacedPolicyViolationListerExpansion allows custom methods to be added to NamespacedPolicyViolationLister.

type NamespacedPolicyViolationNamespaceLister

type NamespacedPolicyViolationNamespaceLister interface {
	// List lists all NamespacedPolicyViolations in the indexer for a given namespace.
	List(selector labels.Selector) (ret []*v1.NamespacedPolicyViolation, err error)
	// Get retrieves the NamespacedPolicyViolation from the indexer for a given namespace and name.
	Get(name string) (*v1.NamespacedPolicyViolation, error)
	NamespacedPolicyViolationNamespaceListerExpansion
}

NamespacedPolicyViolationNamespaceLister helps list and get NamespacedPolicyViolations.

type NamespacedPolicyViolationNamespaceListerExpansion

type NamespacedPolicyViolationNamespaceListerExpansion interface{}

NamespacedPolicyViolationNamespaceListerExpansion allows custom methods to be added to NamespacedPolicyViolationNamespaceLister.

Jump to

Keyboard shortcuts

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