policy

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

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 policyClientSet.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) (*policyV1.Policy, error)

GetPolicyToEnforce retrieves the policy that should be enforced for the specified image in the given namespace

type Interface

type Interface interface {
	GetPolicyToEnforce(namespace, image string) (*policyV1.Policy, error)
}

Interface defines the interface needed to work out which policy should be enforced

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL