Documentation
¶
Index ¶
- func GetStrategyForNode(node *Node) (ExecutionStrategy, error)
- type AllJobRunner
- type AnyJobRunner
- type DispatchingRunner
- type GenericJobRunner
- type HealthChecker
- type HealthCheckerConfiguration
- type JobRunner
- type LocalExecutionStrategy
- type NodeDownError
- type NullExecutionStrategy
- type SshExecutionStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStrategyForNode ¶
func GetStrategyForNode(node *Node) (ExecutionStrategy, error)
Types ¶
type AllJobRunner ¶
type AllJobRunner GenericJobRunner
type AnyJobRunner ¶
type AnyJobRunner GenericJobRunner
type DispatchingRunner ¶
type DispatchingRunner struct {
// contains filtered or unexported fields
}
func NewDispatchingRunner ¶
func NewDispatchingRunner(nodes *container.NodeContainer, storage storage.StorageBackend, health HealthChecker) *DispatchingRunner
type GenericJobRunner ¶
type GenericJobRunner struct {
// contains filtered or unexported fields
}
type HealthChecker ¶
func NewHealthChecker ¶
func NewHealthChecker(config HealthCheckerConfiguration) HealthChecker
type JobRunner ¶
func NewAllJobRunner ¶
func NewAllJobRunner(nodes *container.NodeContainer, storage storage.StorageBackend, health HealthChecker) JobRunner
func NewAnyJobRunner ¶
func NewAnyJobRunner(nodes *container.NodeContainer, storage storage.StorageBackend, health HealthChecker) JobRunner
type LocalExecutionStrategy ¶
type LocalExecutionStrategy struct {
// contains filtered or unexported fields
}
func (*LocalExecutionStrategy) ExecuteCommand ¶
func (s *LocalExecutionStrategy) ExecuteCommand(job *domain.Job, report *domain.RunReportItem) error
func (*LocalExecutionStrategy) HealthCheck ¶
func (s *LocalExecutionStrategy) HealthCheck() error
type NodeDownError ¶
type NodeDownError struct {
// contains filtered or unexported fields
}
func NewNodeDownError ¶
func NewNodeDownError(node *Node, reason string, real error) NodeDownError
func (NodeDownError) Error ¶
func (e NodeDownError) Error() string
type NullExecutionStrategy ¶
type NullExecutionStrategy struct{}
func (*NullExecutionStrategy) ExecuteCommand ¶
func (n *NullExecutionStrategy) ExecuteCommand(_ *Job, _ *RunReportItem) error
func (*NullExecutionStrategy) HealthCheck ¶
func (n *NullExecutionStrategy) HealthCheck() error
type SshExecutionStrategy ¶
type SshExecutionStrategy struct {
// contains filtered or unexported fields
}
func NewSshExecutionStrategy ¶
func NewSshExecutionStrategy(node *Node) (*SshExecutionStrategy, error)
func (*SshExecutionStrategy) ExecuteCommand ¶
func (s *SshExecutionStrategy) ExecuteCommand(job *Job, report *RunReportItem) error
func (*SshExecutionStrategy) HealthCheck ¶
func (s *SshExecutionStrategy) HealthCheck() error
Click to show internal directories.
Click to hide internal directories.