Documentation
¶
Index ¶
- func FetchCommandOutput(command string) string
- func FetchSeperatedCommandOutput(command string) (p *exec.Proc, stdout, stderr bytes.Buffer)
- func FindOrInstallGoBasedProvider(pPath, provider, module, version string) (string, error)
- func PerformNodeLifecycleOperation(ctx context.Context, action types.NodeOperation, node *types.Node, ...) error
- func RunCommand(command string) *exec.Proc
- func RunCommandWithCustomWriter(command string, stdout, stderr io.Writer) *exec.Proc
- func RunCommandWithSeperatedOutput(command string, stdout, stderr io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchCommandOutput ¶
FetchCommandOutput run command and returns the combined stderr and stdout output.
func FetchSeperatedCommandOutput ¶
FetchSeperatedCommandOutput run command and returns the command by splitting the stdout and stderr into different buffers and returns the Process with the buffer that can be ready from to extract the data set on the respective buffers
func FindOrInstallGoBasedProvider ¶
FindOrInstallGoBasedProvider check if the provider specified by the pPath executable exists or not. If it exists, it returns the path with no error and if not, it uses the `go install` capabilities to install the provider and setup the required binaries to perform the tests. In case if the install is done by this helper, it will return the value for installed binary as provider which can then be set in the invoker to make sure the right path is used for the binaries while invoking rest of the workfow after this helper is triggered.
func PerformNodeLifecycleOperation ¶
func PerformNodeLifecycleOperation(ctx context.Context, action types.NodeOperation, node *types.Node, args ...string) error
PerformNodeLifecycleOperation performs a node operation on a cluster. These operations can range from Add/Remove/Start/Stop. This helper is re-used in both node lifecycle handler used as types.StepFunc or env.Func
func RunCommand ¶
RunCommand run command and returns an *exec.Proc with information about the executed process.
func RunCommandWithCustomWriter ¶
RunCommandWithCustomWriter run command and returns an *exec.Proc with information about the executed process. This helps map the STDOUT/STDERR to custom writer to extract data from the output.
Types ¶
This section is empty.