Documentation ¶
Index ¶
- type Command
- type Exists
- type KubectlCommand
- type LocalShellCommand
- type ShellCommand
- func (c *ShellCommand) Execute() (stdout, stderr []byte, err error)
- func (c *ShellCommand) Exists() (isExist bool, err error)
- func (c *ShellCommand) GetCommand() string
- func (c *ShellCommand) WithDescription(desc string) *ShellCommand
- func (c *ShellCommand) WithExecuteLogWriter(w io.Writer) *ShellCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type KubectlCommand ¶
type KubectlCommand struct { *ShellCommand // contains filtered or unexported fields }
KubectlCommand is a command execute by kubectl
type LocalShellCommand ¶
type LocalShellCommand struct {
// contains filtered or unexported fields
}
func NewLocalShellCommand ¶
func NewLocalShellCommand(cmd string, args ...string) *LocalShellCommand
func (*LocalShellCommand) Execute ¶
func (c *LocalShellCommand) Execute() (stderr, stdout []byte, err error)
func (*LocalShellCommand) Exists ¶
func (c *LocalShellCommand) Exists() (isExist bool, err error)
func (*LocalShellCommand) GetCommand ¶
func (c *LocalShellCommand) GetCommand() string
type ShellCommand ¶
type ShellCommand struct {
// contains filtered or unexported fields
}
ShellCommand is a command execute by shell
func NewShellCommand ¶
func NewShellCommand(machine machine.IMachine, cmd string, args ...string) *ShellCommand
func (*ShellCommand) Execute ¶
func (c *ShellCommand) Execute() (stdout, stderr []byte, err error)
func (*ShellCommand) Exists ¶
func (c *ShellCommand) Exists() (isExist bool, err error)
func (*ShellCommand) GetCommand ¶
func (c *ShellCommand) GetCommand() string
func (*ShellCommand) WithDescription ¶
func (c *ShellCommand) WithDescription(desc string) *ShellCommand
func (*ShellCommand) WithExecuteLogWriter ¶
func (c *ShellCommand) WithExecuteLogWriter(w io.Writer) *ShellCommand
Click to show internal directories.
Click to hide internal directories.