v1

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 4 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 {
	ListResources(selector labels.Selector) (ret []*kyvernov1.ClusterPolicy, err error)
}

ClusterPolicyListerExpansion allows custom methods to be added to ClusterPolicyLister.

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 PolicyLister added in v1.2.0

type PolicyLister interface {
	// List lists all Policies in the indexer.
	List(selector labels.Selector) (ret []*v1.Policy, err error)
	// Policies returns an object that can list and get Policies.
	Policies(namespace string) PolicyNamespaceLister
	PolicyListerExpansion
}

PolicyLister helps list Policies.

func NewPolicyLister added in v1.2.0

func NewPolicyLister(indexer cache.Indexer) PolicyLister

NewPolicyLister returns a new PolicyLister.

type PolicyListerExpansion added in v1.2.0

type PolicyListerExpansion interface{}

PolicyListerExpansion allows custom methods to be added to PolicyLister.

type PolicyNamespaceLister added in v1.2.0

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

PolicyNamespaceLister helps list and get Policies.

type PolicyNamespaceListerExpansion added in v1.3.0

type PolicyNamespaceListerExpansion interface{}

PolicyNamespaceListerExpansion allows custom methods to be added to PolicyNamespaceLister.

Jump to

Keyboard shortcuts

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