engine

package
v0.0.0-...-ac29e22 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapper

func NewWrapper(client dclient.Interface) dclient.Interface

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Overwrite write actions to dry run prevents performing actual operations

func (*Client) ApplyResource

func (c *Client) ApplyResource(_ context.Context, _, _, _, _ string, obj interface{}, _ bool, _ string, _ ...string) (*unstructured.Unstructured, error)

func (*Client) ApplyStatusResource

func (c *Client) ApplyStatusResource(_ context.Context, _, _, _, _ string, obj interface{}, _ bool, _ string) (*unstructured.Unstructured, error)

func (*Client) CreateResource

func (c *Client) CreateResource(_ context.Context, _ string, _ string, _ string, obj interface{}, _ bool) (*unstructured.Unstructured, error)

func (*Client) DeleteResource

func (c *Client) DeleteResource(_ context.Context, _ string, _ string, _ string, _ string, _ bool) error

func (*Client) Discovery

func (c *Client) Discovery() dclient.IDiscovery

func (*Client) GetDynamicInterface

func (c *Client) GetDynamicInterface() dynamic.Interface

func (*Client) GetEventsInterface

func (c *Client) GetEventsInterface() eventsv1.EventsV1Interface

func (*Client) GetKubeClient

func (c *Client) GetKubeClient() kubernetes.Interface

func (*Client) GetResource

func (c *Client) GetResource(ctx context.Context, apiVersion string, kind string, namespace string, name string, subresources ...string) (*unstructured.Unstructured, error)

func (*Client) ListResource

func (c *Client) ListResource(ctx context.Context, apiVersion string, kind string, namespace string, lselector *metav1.LabelSelector) (*unstructured.UnstructuredList, error)

func (*Client) PatchResource

func (c *Client) PatchResource(_ context.Context, _ string, _ string, _ string, _ string, _ []byte) (*unstructured.Unstructured, error)

func (*Client) RawAbsPath

func (c *Client) RawAbsPath(ctx context.Context, path string, method string, dataReader io.Reader) ([]byte, error)

func (*Client) SetDiscovery

func (c *Client) SetDiscovery(discoveryClient dclient.IDiscovery)

func (*Client) UpdateResource

func (c *Client) UpdateResource(_ context.Context, _ string, _ string, _ string, obj interface{}, _ bool, _ ...string) (*unstructured.Unstructured, error)

func (*Client) UpdateStatusResource

func (c *Client) UpdateStatusResource(_ context.Context, _ string, _ string, _ string, obj interface{}, _ bool) (*unstructured.Unstructured, error)

type PolicyViolationError

type PolicyViolationError struct {
	Violations []models.PolicyValidation
}

func (PolicyViolationError) Error

func (e PolicyViolationError) Error() string

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(
	params *models.Parameters,
	cluster cluster.Cluster,
	kyvernoConfig *corev1.ConfigMap,
	dClient dclient.Interface,
	cmResolver engineapi.ConfigmapResolver,
	exceptionSelector engineapi.PolicyExceptionSelector,
) (*Processor, error)

func (*Processor) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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