kubernetes

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(client dynamic.Interface, mapper Mapper, publisher *kyverno.EventPublisher) 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(reportMap map[string]interface{}) kyverno.Policy
}

Mapper converts maps into report structs

func NewMapper

func NewMapper() Mapper

NewMapper creates an new Mapper instance

Jump to

Keyboard shortcuts

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