Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.11.0
type Client struct {
// contains filtered or unexported fields
}
A client to get Kubewarden policies from the Kubernetes cluster
func NewClient ¶ added in v1.11.0
func NewClient(client client.Client, kubewardenNamespace string, policyServerURL string) (*Client, error)
NewClient returns a policy Client
func (*Client) GetClusterWidePolicies ¶ added in v1.11.0
GetClusterWidePolicies returns all the auditable cluster-wide policies
type Policies ¶ added in v1.11.0
type Policies struct { // PoliciesByGVR a map of policies grouped by GVR PoliciesByGVR map[schema.GroupVersionResource][]*Policy // PolicyNum represents the number of policies PolicyNum int // SkippedNum represents the number of skipped policies that don't match audit constraints SkippedNum int // ErroredNum represents the number of errored policies. These policies may be misconfigured ErroredNum int }
Policies represents a collection of auditable policies
Click to show internal directories.
Click to hide internal directories.