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.
Click to show internal directories.
Click to hide internal directories.