gencontroller

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller watches the 'Namespace' resource creation/update and applied the generation rules on them

func NewGenController

func NewGenController(client *client.Client,
	eventController event.Generator,
	policyInformer policySharedInformer.PolicyInformer,
	violationBuilder violation.Generator,
	namespaceInformer v1Informer.NamespaceInformer,
	annotationsController annotations.Controller) *Controller

NewGenController returns a new Controller to manage generation rules

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{}) error

Run to run the controller

func (*Controller) Stop

func (c *Controller) Stop()

Stop to stop the controller

Jump to

Keyboard shortcuts

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