Documentation ¶
Index ¶
- func NewScaleBackend(log zerolog.Logger, path string, client *api.Client) state.ScaleBackend
- type ScaleBackend
- func (s *ScaleBackend) GetScalingActivities() (map[uuid.UUID]*state.ScalingActivity, error)
- func (s *ScaleBackend) GetScalingActivity(id uuid.UUID) (*state.ScalingActivity, error)
- func (s *ScaleBackend) RunStateGarbageCollection()
- func (s *ScaleBackend) WriteRequest(req *state.ScalingRequest) error
- func (s *ScaleBackend) WriteRequestEvent(message *state.ScalingUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScaleBackend ¶
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.