consul

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScaleBackend

func NewScaleBackend(log zerolog.Logger, path string, client *api.Client) state.ScaleBackend

NewPolicyBackend returns the Consul implementation of the state.ScaleBackend interface.

Types

type ScaleBackend

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

ScaleBackend is the Consul implementation of the state.ScaleBackend interface.

func (*ScaleBackend) GetScalingActivities

func (s *ScaleBackend) GetScalingActivities() (map[uuid.UUID]*state.ScalingActivity, error)

GetScalingActivities satisfies the GetScalingActivities function on the state.ScaleBackend interface.

func (*ScaleBackend) GetScalingActivity

func (s *ScaleBackend) GetScalingActivity(id uuid.UUID) (*state.ScalingActivity, error)

GetScalingActivity satisfies the GetScalingActivity function on the state.ScaleBackend interface.

func (*ScaleBackend) RunStateGarbageCollection

func (s *ScaleBackend) RunStateGarbageCollection()

RunStateGarbageCollection satisfies the RunStateGarbageCollection function on the state.ScaleBackend interface.

func (*ScaleBackend) WriteRequest

func (s *ScaleBackend) WriteRequest(req *state.ScalingRequest) error

WriteRequest satisfies the WriteRequest function on the state.ScaleBackend interface.

func (*ScaleBackend) WriteRequestEvent

func (s *ScaleBackend) WriteRequestEvent(message *state.ScalingUpdate) error

WriteRequestEvent satisfies the WriteRequestEvent function on the state.ScaleBackend interface.

Jump to

Keyboard shortcuts

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