Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupInterface ¶ added in v1.0.0
type LookupInterface interface { // Lookup based on kind and namespaces LookUp(kind, namespace string) ([]kyverno.ClusterPolicy, error) }
LookupInterface provides api to lookup policies
type PolicyStore ¶ added in v1.0.0
type PolicyStore struct {
// contains filtered or unexported fields
}
PolicyStore Store the meta-data information to faster lookup policies
func NewPolicyStore ¶ added in v1.0.0
func NewPolicyStore(pLister kyvernolister.ClusterPolicyLister) *PolicyStore
NewPolicyStore returns a new policy store
func (*PolicyStore) LookUp ¶ added in v1.0.0
func (ps *PolicyStore) LookUp(kind, namespace string) ([]kyverno.ClusterPolicy, error)
LookUp look up the resources
func (*PolicyStore) Register ¶ added in v1.0.0
func (ps *PolicyStore) Register(policy kyverno.ClusterPolicy)
Register a new policy
func (*PolicyStore) UnRegister ¶ added in v1.0.0
func (ps *PolicyStore) UnRegister(policy kyverno.ClusterPolicy) error
UnRegister Remove policy information
type UpdateInterface ¶ added in v1.0.0
type UpdateInterface interface { // Register a new policy Register(policy kyverno.ClusterPolicy) // Remove policy information UnRegister(policy kyverno.ClusterPolicy) error }
UpdateInterface provides api to update policies
Click to show internal directories.
Click to hide internal directories.