Documentation
¶
Index ¶
- type ClusterPolicyLister
- type ClusterPolicyListerExpansion
- type ClusterPolicyViolationLister
- type ClusterPolicyViolationListerExpansion
- type NamespacedPolicyViolationLister
- type NamespacedPolicyViolationListerExpansion
- type NamespacedPolicyViolationNamespaceLister
- type NamespacedPolicyViolationNamespaceListerExpansion
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.