Documentation ¶
Index ¶
Constants ¶
View Source
const ( FenceAgentContextCanceledMessage = "fence agent context canceled. Nothing to do" FenceAgentContextTimedOutMessage = "fence agent context timed out" FenceAgentRetryErrorMessage = "fence agent retry error" FenceAgentFailedCommandMessage = "command failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executer ¶
func NewExecuter ¶
NewExecuter builds the Executer
func NewFakeExecuter ¶ added in v0.3.0
func NewFakeExecuter(client client.Client, fn runnerFunc, fakeRecorder *record.FakeRecorder) *Executer
NewFakeExecuter builds an Executer with configurable runnerFunc for testing
func (*Executer) AsyncExecute ¶ added in v0.3.0
func (e *Executer) AsyncExecute(ctx context.Context, uid types.UID, command []string, retryCount int, retryInterval, timeout time.Duration)
AsyncExecute runs the command in a goroutine mapped to the UID
Click to show internal directories.
Click to hide internal directories.