Documentation
¶
Index ¶
- Variables
- func RandStringRunes() string
- type CLI
- func (c *CLI) Command(ctx context.Context, command string, arg ...string) *exec.Cmd
- func (c *CLI) CommandWithNamespace(ctx context.Context, command string, namespace string, arg ...string) *exec.Cmd
- func (c *CLI) CommandWithoutNs(ctx context.Context, command string, arg ...string) *exec.Cmd
- func (c CLI) Run(ctx context.Context, command string, arg ...string) (string, string, error)
- func (c CLI) RunClusterScope(ctx context.Context, command string, arg ...string) (string, string, error)
- func (c CLI) RunWithRollingOut(ctx context.Context, command string, arg ...string) (string, string, error)
- func (c CLI) SuitName() string
- type Client
- type ClientImpl
- func (i *ClientImpl) GetClientset() *kubernetes.Clientset
- func (i *ClientImpl) GetHelm() *CLI
- func (i *ClientImpl) GetKubectl() *CLI
- func (i *ClientImpl) GetNhctl() *CLI
- func (i *ClientImpl) NameSpace() string
- func (i *ClientImpl) RandomNsCli(suitName string) Client
- func (i *ClientImpl) SuiteName() string
- type CmdRunner
- func (r *CmdRunner) CheckResult(cmd *exec.Cmd, stdout string, stderr string, err error) error
- func (r *CmdRunner) Run(suitName string, cmd *exec.Cmd) (string, string, error)
- func (r *CmdRunner) RunSimple(suitName string, cmd *exec.Cmd, ignoreStdErr bool, ...) error
- func (r *CmdRunner) RunWithCheckResult(suitName string, cmd *exec.Cmd) error
- func (r *CmdRunner) RunWithRollingOutWithChecker(suitName string, cmd *exec.Cmd, checker func(log string) bool) (string, string, error)
- type Conf
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var Runner = &CmdRunner{}
Functions ¶
func RandStringRunes ¶
func RandStringRunes() string
Types ¶
type CLI ¶
type CLI struct {
KubeConfig string
Namespace string
Cmd string
// contains filtered or unexported fields
}
func NewKubectl ¶
func (*CLI) CommandWithNamespace ¶
func (*CLI) CommandWithoutNs ¶
func (CLI) RunClusterScope ¶
func (CLI) RunWithRollingOut ¶
type Client ¶
type ClientImpl ¶
type ClientImpl struct {
Nhctl *CLI
Kubectl *CLI
Helm *CLI
Clientset *kubernetes.Clientset
// contains filtered or unexported fields
}
func (*ClientImpl) GetClientset ¶
func (i *ClientImpl) GetClientset() *kubernetes.Clientset
func (*ClientImpl) GetHelm ¶
func (i *ClientImpl) GetHelm() *CLI
func (*ClientImpl) GetKubectl ¶
func (i *ClientImpl) GetKubectl() *CLI
func (*ClientImpl) GetNhctl ¶
func (i *ClientImpl) GetNhctl() *CLI
func (*ClientImpl) NameSpace ¶
func (i *ClientImpl) NameSpace() string
func (*ClientImpl) RandomNsCli ¶
func (i *ClientImpl) RandomNsCli(suitName string) Client
func (*ClientImpl) SuiteName ¶
func (i *ClientImpl) SuiteName() string
type CmdRunner ¶
type CmdRunner struct{}
func (*CmdRunner) CheckResult ¶
func (*CmdRunner) RunWithCheckResult ¶
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
func (*Conf) GetKubeConfig ¶
func (*Conf) GetNamespace ¶
Click to show internal directories.
Click to hide internal directories.