controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegisteredControllers contains a list of all the registered controllers
	// for the agent to run
	RegisteredControllers []Controller
)

Functions

func RunControllers

func RunControllers() error

RunControllers run all the controller registered by the agent.

func StopControllers

func StopControllers() error

StopControllers stops running all the controllers managed by API server.

Types

type Controller

type Controller interface {
	// Configure sets up the controller
	Configure()

	// Run starts running the controller.
	Run() error

	// Stop shuts down the controller running.
	Stop() error

	// Name returns the name of the controller
	Name() string
}

Controller is the standard interface which should be implemented by all the registered controllers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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