Documentation ¶
Index ¶
Constants ¶
View Source
const (
PROTOCOL_TTY string = "tty"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCommand ¶
type BaseCommand struct {
// contains filtered or unexported fields
}
func NewBaseCommand ¶
func NewBaseCommand(name string, args ...string) *BaseCommand
func (*BaseCommand) AppendArgs ¶
func (c *BaseCommand) AppendArgs(args ...string) *BaseCommand
func (BaseCommand) Cleanup ¶
func (c BaseCommand) Cleanup() error
func (BaseCommand) GetCommand ¶
func (c BaseCommand) GetCommand() *exec.Cmd
func (BaseCommand) GetData ¶
func (c BaseCommand) GetData(comand string) (isShow bool, ouput string, command string)
func (BaseCommand) ShowInfo ¶
func (c BaseCommand) ShowInfo() string
type ICommand ¶
type ICommand interface { GetProtocol() string GetCommand() *exec.Cmd Cleanup() error GetData(string) (isShow bool, ouput string, command string) ShowInfo() string }
func NewPodBashCommand ¶
func NewPodLogCommand ¶
type IpmitoolSol ¶
type IpmitoolSol struct { *BaseCommand Info *IpmiInfo }
func NewIpmitoolSolCommand ¶
func NewIpmitoolSolCommand(info *IpmiInfo) (*IpmitoolSol, error)
func (*IpmitoolSol) GetCommand ¶
func (c *IpmitoolSol) GetCommand() *exec.Cmd
func (IpmitoolSol) GetProtocol ¶
func (c IpmitoolSol) GetProtocol() string
type Kubectl ¶
type Kubectl struct { *BaseCommand // contains filtered or unexported fields }
func NewKubectlCommand ¶
func (*Kubectl) Exec ¶
func (c *Kubectl) Exec() *KubectlExec
func (*Kubectl) GetCommand ¶
func (Kubectl) GetProtocol ¶
func (*Kubectl) Logs ¶
func (c *Kubectl) Logs() *KubectlLog
type KubectlExec ¶
type KubectlExec struct {
*Kubectl
}
func (*KubectlExec) Command ¶
func (c *KubectlExec) Command(cmd string, args ...string) *KubectlExec
func (*KubectlExec) Container ¶
func (c *KubectlExec) Container(name string) *KubectlExec
func (*KubectlExec) Pod ¶
func (c *KubectlExec) Pod(name string) *KubectlExec
func (*KubectlExec) Stdin ¶
func (c *KubectlExec) Stdin() *KubectlExec
func (*KubectlExec) TTY ¶
func (c *KubectlExec) TTY() *KubectlExec
type KubectlLog ¶
type KubectlLog struct {
*Kubectl
}
func (*KubectlLog) Container ¶
func (c *KubectlLog) Container(name string) *KubectlLog
func (*KubectlLog) Follow ¶
func (c *KubectlLog) Follow() *KubectlLog
func (*KubectlLog) Pod ¶
func (c *KubectlLog) Pod(name string) *KubectlLog
type SSHtoolSol ¶
type SSHtoolSol struct { *BaseCommand IP string Username string // contains filtered or unexported fields }
func NewSSHtoolSolCommand ¶
func NewSSHtoolSolCommand(ip string) (*SSHtoolSol, error)
func (*SSHtoolSol) Cleanup ¶
func (c *SSHtoolSol) Cleanup() error
func (*SSHtoolSol) GetCommand ¶
func (c *SSHtoolSol) GetCommand() *exec.Cmd
func (*SSHtoolSol) GetData ¶
func (c *SSHtoolSol) GetData(data string) (isShow bool, ouput string, command string)
func (*SSHtoolSol) GetProtocol ¶
func (c *SSHtoolSol) GetProtocol() string
func (*SSHtoolSol) ShowInfo ¶
func (c *SSHtoolSol) ShowInfo() string
Click to show internal directories.
Click to hide internal directories.