Documentation
¶
Index ¶
- type Attempt
- type AttemptStore
- type CommandConfig
- type CommandExecutor
- func (executor CommandExecutor) AwaitProgress(ctx context.Context, attempt Attempt) ([]string, []string, error)
- func (executor CommandExecutor) Checkpoint(ctx context.Context, attempt Attempt) (string, error)
- func (executor CommandExecutor) RestartDispatcher(ctx context.Context, attempt Attempt) error
- func (executor CommandExecutor) Validate() error
- type CommandObserver
- type Controller
- type Decision
- type Event
- type EventSink
- type Executor
- type FileStore
- func (store FileStore) Begin(_ context.Context, attempt Attempt) (bool, error)
- func (store FileStore) Finish(_ context.Context, result Result) error
- func (store FileStore) ReadHeartbeat(_ context.Context) (Heartbeat, error)
- func (store FileStore) RecordHeartbeat(_ context.Context, heartbeat Heartbeat) error
- type Heartbeat
- type HeartbeatReader
- type MetricsFileSink
- type MultiSink
- type Observation
- type Observer
- type PendingCreate
- type Policy
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptStore ¶
type CommandConfig ¶
type CommandExecutor ¶
type CommandExecutor struct {
Config CommandConfig
}
func (CommandExecutor) AwaitProgress ¶
func (CommandExecutor) Checkpoint ¶
func (CommandExecutor) RestartDispatcher ¶
func (executor CommandExecutor) RestartDispatcher(ctx context.Context, attempt Attempt) error
func (CommandExecutor) Validate ¶
func (executor CommandExecutor) Validate() error
type CommandObserver ¶
func (CommandObserver) Observe ¶
func (observer CommandObserver) Observe(ctx context.Context) (Observation, error)
func (CommandObserver) Validate ¶
func (observer CommandObserver) Validate() error
type Controller ¶
type Controller struct {
Policy Policy
Observer Observer
Heartbeat HeartbeatReader
Attempts AttemptStore
Executor Executor
Events EventSink
Now func() time.Time
}
type HeartbeatReader ¶
type MetricsFileSink ¶
type MetricsFileSink struct{ Path string }
type Observation ¶
type PendingCreate ¶
Click to show internal directories.
Click to hide internal directories.