Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StatusFileFormat is the format specifier used to generate the status file path StatusFileFormat = "/tmp/stork-cmd-done-%s" // KillFileFormat is the format specifier used to generate the kill file path KillFileFormat = "/tmp/killme-%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { // Start starts the command in the pod asynchronously Start(chan error) error // Wait checks if the command started in pod completed successfully // timeout is the time after which the check should timeout. Wait(timeout time.Duration) error // GetPod returns the pod namespace and name for the executor instance GetPod() (string, string) // GetContainer returns the container inside the pod for the executor instance GetContainer() string // GetCommand returns the pod command for the executor instance GetCommand() string }
Executor is an interface to start and wait for async commands in pods
Click to show internal directories.
Click to hide internal directories.