Documentation
¶
Index ¶
- func GetDeepCopyOfCommandExecutor(commandExectuor commandexecutorinterfaces.CommandExecutor) (copy commandexecutorinterfaces.CommandExecutor, err error)
- func IsLiveOutputOnStdoutEnabled(ctx context.Context) bool
- func WithLiveOutputOnStdout(ctx context.Context) context.Context
- func WithLiveOutputOnStdoutEnabled(ctx context.Context, enabled bool) context.Context
- func WithLiveOutputOnStdoutIfVerbose(ctx context.Context) context.Context
- type BashService
- func (b *BashService) GetDeepCopy() (deepCopy commandexecutorinterfaces.CommandExecutor)
- func (b *BashService) GetHostDescription() (hostDescription string, err error)
- func (b *BashService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
- func (b *BashService) RunOneLiner(ctx context.Context, oneLiner string) (output *commandexecutorgeneric.CommandOutput, err error)
- func (b *BashService) RunOneLinerAndGetStdoutAsLines(ctx context.Context, oneLiner string) (stdoutLines []string, err error)
- func (b *BashService) RunOneLinerAndGetStdoutAsString(ctx context.Context, oneLiner string) (stdout string, err error)
- type CommandExecutorBase
- func (c *CommandExecutorBase) GetParentCommandExecutorForBaseClass() (parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor, ...)
- func (c *CommandExecutorBase) IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)
- func (c *CommandExecutorBase) RunCommandAndGetStdoutAsBytes(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout []byte, err error)
- func (c *CommandExecutorBase) RunCommandAndGetStdoutAsFloat64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout float64, err error)
- func (c *CommandExecutorBase) RunCommandAndGetStdoutAsInt64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout int64, err error)
- func (c *CommandExecutorBase) RunCommandAndGetStdoutAsLines(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdoutLines []string, err error)
- func (c *CommandExecutorBase) RunCommandAndGetStdoutAsString(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout string, err error)
- func (c *CommandExecutorBase) SetParentCommandExecutorForBaseClass(parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor) (err error)
- type ContextKeyLiveOutputOnStdout
- type ExecService
- func (e *ExecService) GetDeepCopy() (deepCopy commandexecutorinterfaces.CommandExecutor)
- func (e *ExecService) GetHostDescription() (hostDescription string, err error)
- func (e *ExecService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
- type PowerShellService
- func (b *PowerShellService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
- func (p *PowerShellService) RunOneLiner(ctx context.Context, oneLiner string) (output *commandexecutorgeneric.CommandOutput, err error)
- func (p *PowerShellService) RunOneLinerAndGetStdoutAsString(ctx context.Context, oneLiner string) (stdout string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeepCopyOfCommandExecutor ¶
func GetDeepCopyOfCommandExecutor(commandExectuor commandexecutorinterfaces.CommandExecutor) (copy commandexecutorinterfaces.CommandExecutor, err error)
Types ¶
type BashService ¶
type BashService struct {
CommandExecutorBase
}
func NewBashService ¶
func NewBashService() (b *BashService)
func (*BashService) GetDeepCopy ¶
func (b *BashService) GetDeepCopy() (deepCopy commandexecutorinterfaces.CommandExecutor)
func (*BashService) GetHostDescription ¶
func (b *BashService) GetHostDescription() (hostDescription string, err error)
func (*BashService) RunCommand ¶
func (b *BashService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
func (*BashService) RunOneLiner ¶
func (b *BashService) RunOneLiner(ctx context.Context, oneLiner string) (output *commandexecutorgeneric.CommandOutput, err error)
func (*BashService) RunOneLinerAndGetStdoutAsLines ¶
func (*BashService) RunOneLinerAndGetStdoutAsString ¶
type CommandExecutorBase ¶
type CommandExecutorBase struct {
// contains filtered or unexported fields
}
func NewCommandExecutorBase ¶
func NewCommandExecutorBase() (c *CommandExecutorBase)
func (*CommandExecutorBase) GetParentCommandExecutorForBaseClass ¶
func (c *CommandExecutorBase) GetParentCommandExecutorForBaseClass() (parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor, err error)
func (*CommandExecutorBase) IsRunningOnLocalhost ¶
func (c *CommandExecutorBase) IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)
func (*CommandExecutorBase) RunCommandAndGetStdoutAsBytes ¶
func (c *CommandExecutorBase) RunCommandAndGetStdoutAsBytes(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout []byte, err error)
func (*CommandExecutorBase) RunCommandAndGetStdoutAsFloat64 ¶
func (c *CommandExecutorBase) RunCommandAndGetStdoutAsFloat64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout float64, err error)
func (*CommandExecutorBase) RunCommandAndGetStdoutAsInt64 ¶
func (c *CommandExecutorBase) RunCommandAndGetStdoutAsInt64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout int64, err error)
func (*CommandExecutorBase) RunCommandAndGetStdoutAsLines ¶
func (c *CommandExecutorBase) RunCommandAndGetStdoutAsLines(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdoutLines []string, err error)
func (*CommandExecutorBase) RunCommandAndGetStdoutAsString ¶
func (c *CommandExecutorBase) RunCommandAndGetStdoutAsString(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout string, err error)
func (*CommandExecutorBase) SetParentCommandExecutorForBaseClass ¶
func (c *CommandExecutorBase) SetParentCommandExecutorForBaseClass(parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor) (err error)
type ContextKeyLiveOutputOnStdout ¶
type ContextKeyLiveOutputOnStdout struct{}
type ExecService ¶
type ExecService struct {
CommandExecutorBase
}
func Exec ¶
func Exec() (e *ExecService)
func NewExec ¶
func NewExec() (e *ExecService)
func NewExecService ¶
func NewExecService() (e *ExecService)
func (*ExecService) GetDeepCopy ¶
func (e *ExecService) GetDeepCopy() (deepCopy commandexecutorinterfaces.CommandExecutor)
func (*ExecService) GetHostDescription ¶
func (e *ExecService) GetHostDescription() (hostDescription string, err error)
func (*ExecService) RunCommand ¶
func (e *ExecService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
type PowerShellService ¶
type PowerShellService struct {
CommandExecutorBase
}
func NewPowerShell ¶
func NewPowerShell() (p *PowerShellService)
func NewPowerShellService ¶
func NewPowerShellService() (p *PowerShellService)
func PowerShell ¶
func PowerShell() (p *PowerShellService)
func (*PowerShellService) RunCommand ¶
func (b *PowerShellService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandexecutorgeneric.CommandOutput, err error)
func (*PowerShellService) RunOneLiner ¶
func (p *PowerShellService) RunOneLiner(ctx context.Context, oneLiner string) (output *commandexecutorgeneric.CommandOutput, err error)
func (*PowerShellService) RunOneLinerAndGetStdoutAsString ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.