v1

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 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.PolicyViolation) ([]*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 GenerateRequestLister added in v1.1.0

type GenerateRequestLister interface {
	// List lists all GenerateRequests in the indexer.
	List(selector labels.Selector) (ret []*v1.GenerateRequest, err error)
	// GenerateRequests returns an object that can list and get GenerateRequests.
	GenerateRequests(namespace string) GenerateRequestNamespaceLister
	GenerateRequestListerExpansion
}

GenerateRequestLister helps list GenerateRequests.

func NewGenerateRequestLister added in v1.1.0

func NewGenerateRequestLister(indexer cache.Indexer) GenerateRequestLister

NewGenerateRequestLister returns a new GenerateRequestLister.

type GenerateRequestListerExpansion added in v1.1.0

type GenerateRequestListerExpansion interface {
}

GenerateRequestListerExpansion allows custom methods to be added to GenerateRequestLister.

type GenerateRequestNamespaceLister added in v1.1.0

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

GenerateRequestNamespaceLister helps list and get GenerateRequests.

type GenerateRequestNamespaceListerExpansion added in v1.1.0

type GenerateRequestNamespaceListerExpansion interface {
	GetGenerateRequestsForClusterPolicy(policy string) ([]*kyvernov1.GenerateRequest, error)
	GetGenerateRequestsForResource(kind, namespace, name string) ([]*kyvernov1.GenerateRequest, error)
}

GenerateRequestNamespaceListerExpansion allows custom methods to be added to GenerateRequestNamespaceLister.

type PolicyViolationLister added in v1.1.0

type PolicyViolationLister interface {
	// List lists all PolicyViolations in the indexer.
	List(selector labels.Selector) (ret []*v1.PolicyViolation, err error)
	// PolicyViolations returns an object that can list and get PolicyViolations.
	PolicyViolations(namespace string) PolicyViolationNamespaceLister
	PolicyViolationListerExpansion
}

PolicyViolationLister helps list PolicyViolations.

func NewPolicyViolationLister added in v1.1.0

func NewPolicyViolationLister(indexer cache.Indexer) PolicyViolationLister

NewPolicyViolationLister returns a new PolicyViolationLister.

type PolicyViolationListerExpansion added in v1.1.0

type PolicyViolationListerExpansion interface{}

PolicyViolationListerExpansion allows custom methods to be added to PolicyViolationLister.

type PolicyViolationNamespaceLister added in v1.1.0

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

PolicyViolationNamespaceLister helps list and get PolicyViolations.

type PolicyViolationNamespaceListerExpansion added in v1.1.0

type PolicyViolationNamespaceListerExpansion interface{}

PolicyViolationNamespaceListerExpansion allows custom methods to be added to PolicyViolationNamespaceLister.

Jump to

Keyboard shortcuts

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