cli

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

type Executer struct {
	client.Client
	// contains filtered or unexported fields
}

func NewExecuter

func NewExecuter(client client.Client, newRecorder record.EventRecorder) (*Executer, error)

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

func (*Executer) Exists added in v0.3.0

func (e *Executer) Exists(uid types.UID) bool

Exists checks if there is already a running Fence Agent command mapped to the UID

func (*Executer) Remove added in v0.3.0

func (e *Executer) Remove(uid types.UID)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL