Documentation
¶
Index ¶
- func GenerateYaml(path string, data interface{}) (err error)
- func ValidatePath(wd string, p *string) error
- type Cmd
- func (c *Cmd) Arg(name, v string) *Cmd
- func (c *Cmd) Args(args ...string) *Cmd
- func (c Cmd) Base() *Cmd
- func (c *Cmd) BoolArg(name string, v bool) *Cmd
- func (c Cmd) Command() []string
- func (c *Cmd) Cwd(path string) *Cmd
- func (c *Cmd) Env(env ...string) *Cmd
- func (c *Cmd) ListArg(name string, vs []string) *Cmd
- func (c *Cmd) NoWait() *Cmd
- func (c *Cmd) PostEnd(f func() error) *Cmd
- func (c *Cmd) PostStart(f func() error) *Cmd
- func (c *Cmd) PreStart(f func() error) *Cmd
- func (c *Cmd) Run(ctx context.Context) (string, error)
- func (c *Cmd) Stderr(w io.Writer) *Cmd
- func (c *Cmd) Stdin(r io.Reader) *Cmd
- func (c *Cmd) Stdout(w io.Writer) *Cmd
- func (c *Cmd) Timeout(t time.Duration) *Cmd
- type DockerCmd
- type HelmCmd
- type KubeCmd
- func (c KubeCmd) CopyToPod(pod, container, source, destination string) *Cmd
- func (c KubeCmd) CreateConfigMap(ctx context.Context, name string, keyMap map[string]string) (string, error)
- func (c KubeCmd) CreateConfigMapFromFile(ctx context.Context, name, path string) (string, error)
- func (c KubeCmd) DeleteConfigMap(ctx context.Context, name string) (string, error)
- func (c KubeCmd) DeleteService(service string) *Cmd
- func (c KubeCmd) ExecPod(pod, container string, cmd []string) *Cmd
- func (c KubeCmd) ExecShell(resource, path string) *Cmd
- func (c KubeCmd) ExposePod(pod string, host string, port int) *Cmd
- func (c KubeCmd) GetConfigMapKey(ctx context.Context, name, key string) (string, error)
- func (c KubeCmd) GetContainers(deployment v1.Deployment) []string
- func (c KubeCmd) GetDeployment(ctx context.Context, deployment string) (*v1.Deployment, error)
- func (c KubeCmd) GetDeployments(ctx context.Context) ([]string, error)
- func (c KubeCmd) GetMostRecentPodBySelectors(ctx context.Context, selectors map[string]string) (string, error)
- func (c KubeCmd) GetNamespaces(ctx context.Context) ([]string, error)
- func (c KubeCmd) GetPods(ctx context.Context, selectors map[string]string) ([]string, error)
- func (c KubeCmd) GetPodsByLabels(ctx context.Context, labels []string) ([]string, error)
- func (c KubeCmd) PatchDeployment(patch, deployment string) *Cmd
- func (c KubeCmd) RestartDeployment(deployment string) *Cmd
- func (c KubeCmd) RollbackDeployment(deployment string) *Cmd
- func (c KubeCmd) WaitForPodState(pod, condition, timeout string) *Cmd
- func (c KubeCmd) WaitForRollout(deployment, timeout string) *Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateYaml ¶
func ValidatePath ¶
Types ¶
type DockerCmd ¶
func NewDockerCommand ¶
func NewDockerCommand() *DockerCmd
type HelmCmd ¶
type HelmCmd struct {
Cmd
}
func NewHelmCommand ¶
func NewHelmCommand() *HelmCmd
type KubeCmd ¶
type KubeCmd struct {
Cmd
}
func NewKubeCommand ¶
func NewKubeCommand() *KubeCmd
func (KubeCmd) CreateConfigMap ¶
func (KubeCmd) CreateConfigMapFromFile ¶
func (KubeCmd) DeleteConfigMap ¶
func (KubeCmd) DeleteService ¶
func (KubeCmd) GetConfigMapKey ¶
func (KubeCmd) GetContainers ¶
func (c KubeCmd) GetContainers(deployment v1.Deployment) []string
func (KubeCmd) GetDeployment ¶
func (KubeCmd) GetDeployments ¶
func (KubeCmd) GetMostRecentPodBySelectors ¶
func (KubeCmd) GetNamespaces ¶
func (KubeCmd) GetPodsByLabels ¶
func (KubeCmd) PatchDeployment ¶
func (KubeCmd) RestartDeployment ¶
func (KubeCmd) RollbackDeployment ¶
func (KubeCmd) WaitForPodState ¶
func (KubeCmd) WaitForRollout ¶
Click to show internal directories.
Click to hide internal directories.