Help us shape the future of Go! Take the 2026 Go Developer Survey

rule

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 21 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 is the rule controller

func NewController

func NewController(recorder record.EventRecorder) *Controller

NewController creates a new rule controller

func (*Controller) Handle

func (c *Controller) Handle(ctx context.Context, event sdk.Event) error

Handle updates for AutopilotRule objects

func (*Controller) Init

func (c *Controller) Init(
	ruleEngineToUse string,
	providers []config.MetricsProvider,
	eventProviders []audit.EventProvider,
	minPollRate, coolDownPeriod time.Duration) error

Init initializes the rule controller

Jump to

Keyboard shortcuts

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