clustercontroller

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterController

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

func New

func New(id int, user user.User, status chan<- control.UserStatus) (*ClusterController, error)

func (*ClusterController) InjectAction added in v1.10.0

func (c *ClusterController) InjectAction(actionID string) error

InjectAction allows a named UserAction to be injected that is run once, at the next available opportunity. These actions can be injected via the coordinator via CLI or Rest API.

func (*ClusterController) Run

func (c *ClusterController) Run()

Run begins performing a set of actions in a loop with a defined wait in between the actions. It keeps on doing it until Stop is invoked. This is also a blocking function, so it is recommended to invoke it inside a goroutine.

func (*ClusterController) SetRate

func (c *ClusterController) SetRate(rate float64) error

SetRate sets the relative speed of execution of actions by the user.

func (*ClusterController) Stop

func (c *ClusterController) Stop()

Stop stops the controller.

Jump to

Keyboard shortcuts

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