Documentation ¶
Index ¶
- func NewStateBackend() scale.Backend
- type StateBackend
- func (s *StateBackend) GetLatestScalingEvent(job, group string) (*state.ScalingEvent, error)
- func (s *StateBackend) GetLatestScalingEvents() (map[string]*state.ScalingEvent, error)
- func (s *StateBackend) GetScalingEvent(id uuid.UUID) (map[string]*state.ScalingEvent, error)
- func (s *StateBackend) GetScalingEvents() (map[uuid.UUID]map[string]*state.ScalingEvent, error)
- func (s *StateBackend) PutScalingEvent(job string, event *state.ScalingEventMessage) error
- func (s *StateBackend) RunGarbageCollection()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateBackend ¶
Types ¶
type StateBackend ¶
func (*StateBackend) GetLatestScalingEvent ¶ added in v0.3.0
func (s *StateBackend) GetLatestScalingEvent(job, group string) (*state.ScalingEvent, error)
func (*StateBackend) GetLatestScalingEvents ¶ added in v0.3.0
func (s *StateBackend) GetLatestScalingEvents() (map[string]*state.ScalingEvent, error)
func (*StateBackend) GetScalingEvent ¶
func (s *StateBackend) GetScalingEvent(id uuid.UUID) (map[string]*state.ScalingEvent, error)
func (*StateBackend) GetScalingEvents ¶
func (s *StateBackend) GetScalingEvents() (map[uuid.UUID]map[string]*state.ScalingEvent, error)
func (*StateBackend) PutScalingEvent ¶
func (s *StateBackend) PutScalingEvent(job string, event *state.ScalingEventMessage) error
func (*StateBackend) RunGarbageCollection ¶
func (s *StateBackend) RunGarbageCollection()
Click to show internal directories.
Click to hide internal directories.