maxlife

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 5 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 a single maxlife controller that works with a single instance plugin to ensure that the resource instances managed by the plugin do not exceed a specified lifetime.

func NewController

func NewController(name string, plugin instance.Plugin, poll, maxlife time.Duration,
	tags map[string]string) *Controller

NewController creates a controller based on the given plugin and configurations.

func (*Controller) Start

func (c *Controller) Start()

Start starts the controller running. This call does not block.

func (*Controller) Stop

func (c *Controller) Stop()

Stop stops the controller

Jump to

Keyboard shortcuts

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