generate

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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 ConfigNotFound

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

func NewConfigNotFound

func NewConfigNotFound(config interface{}, kind, namespace, name string) *ConfigNotFound

func (*ConfigNotFound) Error

func (e *ConfigNotFound) Error() string

type Controller

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

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run ...

type NotFound

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

func NewNotFound

func NewNotFound(kind, namespace, name string) *NotFound

func (*NotFound) Error

func (e *NotFound) Error() string

type ParseFailed

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

DATA

func NewParseFailed

func NewParseFailed(spec interface{}, err error) *ParseFailed

func (*ParseFailed) Error

func (e *ParseFailed) Error() string

type StatusControl

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

StatusControl is default implementaation of GRStatusControlInterface

func (StatusControl) Failed

func (sc StatusControl) Failed(gr kyverno.GenerateRequest, message string, genResources []kyverno.ResourceSpec) error

FailedGR sets gr status.state to failed with message

func (StatusControl) Success

func (sc StatusControl) Success(gr kyverno.GenerateRequest, genResources []kyverno.ResourceSpec) error

SuccessGR sets the gr status.state to completed and clears message

type StatusControlInterface

type StatusControlInterface interface {
	Failed(gr kyverno.GenerateRequest, message string, genResources []kyverno.ResourceSpec) error
	Success(gr kyverno.GenerateRequest, genResources []kyverno.ResourceSpec) error
}

type Violation

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

func NewViolation

func NewViolation(rule string, err error) *Violation

func (*Violation) Error

func (e *Violation) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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