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.
Click to show internal directories.
Click to hide internal directories.