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
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
Click to show internal directories.
Click to hide internal directories.