policyviolation

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v1.1.0

type Builder interface {
	// contains filtered or unexported methods
}

Builder builds Policy Violation struct this is base type of namespaced and cluster policy violation

type Generator added in v1.0.0

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

Generator creates PV

func NewPVGenerator added in v1.0.0

NewPVGenerator returns a new instance of policy violation generator

func (*Generator) Add added in v1.0.0

func (gen *Generator) Add(infos ...Info)

Add queues a policy violation create request

func (*Generator) Run added in v1.0.0

func (gen *Generator) Run(workers int, stopCh <-chan struct{})

Run starts the workers

type GeneratorInterface added in v1.0.0

type GeneratorInterface interface {
	Add(infos ...Info)
}

GeneratorInterface provides API to create PVs

type Info added in v1.0.0

type Info struct {
	PolicyName string
	Resource   unstructured.Unstructured
	Rules      []kyverno.ViolatedRule
	FromSync   bool
}

Info is a request to create PV

func GeneratePVsFromEngineResponse added in v1.1.0

func GeneratePVsFromEngineResponse(ers []response.EngineResponse, log logr.Logger) (pvInfos []Info)

GeneratePVsFromEngineResponse generate Violations from engine responses

Jump to

Keyboard shortcuts

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