Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is responsible for working out which policy should be enforced
func NewClient ¶
func NewClient(policyClientSet securityenforcementclientset.Interface) *Client
NewClient creates a new policy client using the Security Enforcement client set it is passed
func (*Client) GetPolicyToEnforce ¶
func (c *Client) GetPolicyToEnforce(namespace, image string) (*securityenforcementv1beta1.Policy, error)
GetPolicyToEnforce retrieves the policy that should be enforced for the specified image in the given namespace
Click to show internal directories.
Click to hide internal directories.