kubernetes

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(client metadata.Interface, queue *Queue) kyverno.PolicyClient

NewClient creates a new PolicyClient based on the kubernetes go-client

Types

type Mapper

type Mapper interface {
	// MapPolicy maps a map into a Policy
	MapPolicy(apiV1.PolicyInterface, *unstructured.Unstructured) kyverno.Policy
}

Mapper converts maps into report structs

func NewMapper

func NewMapper() Mapper

NewMapper creates an new Mapper instance

type Queue added in v1.5.1

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

func NewQueue added in v1.5.1

func (*Queue) Add added in v1.5.1

func (q *Queue) Add(obj *v1.PartialObjectMetadata) error

func (*Queue) Run added in v1.5.1

func (q *Queue) Run(workers int, stopCh chan struct{})

Jump to

Keyboard shortcuts

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