violation

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is to build policy violations

func NewPolicyViolationBuilder

func NewPolicyViolationBuilder(client *client.Client,
	sharedInfomer sharedinformer.PolicyInformer,
	eventController event.Generator) Builder

NewPolicyViolationBuilder returns new violation builder

type Generator

type Generator interface {
	Add(info Info) error
}

Generator to generate policy violation

type Info

type Info struct {
	Policy string
	policytype.Violation
}

ViolationInfo describes the policyviolation details

func NewViolation

func NewViolation(policyName string, kind string, resource string, rule string) Info

NewViolation return new policy violation

Jump to

Keyboard shortcuts

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