multi

package
v0.13.13 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {

	// Enforcer is used to check that containers satisfy constraints set by a policy
	Enforcer
	// PMetrics is used to provide scrapable metrics for prometheus
	PMetrics *metrics.PortierisMetrics
	// contains filtered or unexported fields
}

Controller is the notary controller

func NewController

func NewController(kubeWrapper kubernetes.WrapperInterface, policyClient policy.Interface, nv *notaryverifier.Verifier, pm *metrics.PortierisMetrics) *Controller

NewController creates a new controller object from the various clients passed in

func (*Controller) Admit

Admit is the admissionRequest handler

type Enforcer

Enforcer is an interface that enforces pod admission based on a configured policy

func NewEnforcer

func NewEnforcer(kubeClientsetWrapper kubernetes.WrapperInterface, nv *notaryverifier.Verifier) Enforcer

NewEnforcer returns an enforce that wraps the kubenetes interface and a notary verifier

Jump to

Keyboard shortcuts

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