Documentation ¶
Index ¶
- type Cmd
- func (c *Cmd) Args(args ...string) *Cmd
- func (c Cmd) Base() *Cmd
- func (c Cmd) Command() []string
- func (c *Cmd) Cwd(path string) *Cmd
- func (c *Cmd) Done() <-chan struct{}
- func (c *Cmd) Env(env ...string) *Cmd
- func (c *Cmd) Logger(l *logrus.Entry) *Cmd
- func (c *Cmd) NoWait() *Cmd
- func (c *Cmd) PostEnd(f func() error) *Cmd
- func (c *Cmd) PostStart(f func(p *os.Process) error) *Cmd
- func (c *Cmd) PreStart(f func() error) *Cmd
- func (c *Cmd) Quiet() *Cmd
- func (c *Cmd) Run(ctx context.Context) (string, error)
- func (c *Cmd) Started() <-chan struct{}
- func (c *Cmd) Stderr(w io.Writer) *Cmd
- func (c *Cmd) Stdin(r io.Reader) *Cmd
- func (c *Cmd) Stdout(w io.Writer) *Cmd
- type DockerCmd
- func (c DockerCmd) Build(workDir string, options ...string) *Cmd
- func (c DockerCmd) GetPlatform(ctx context.Context, image string) (*Platform, error)
- func (c DockerCmd) ImageInspect(options ...string) *Cmd
- func (c DockerCmd) Pull(image, tag string, options ...string) *Cmd
- func (c DockerCmd) Push(image, tag string, options ...string) *Cmd
- type GoCmd
- type HelmCmd
- type KubectlCmd
- func (c KubectlCmd) CopyToPod(pod, container, source, destination string) *Cmd
- func (c KubectlCmd) CreateConfigMap(name string, keyMap map[string]string) *KubectlCmd
- func (c KubectlCmd) CreateConfigMapFromFile(name, path string) *Cmd
- func (c KubectlCmd) DeleteConfigMap(name string) *Cmd
- func (c KubectlCmd) DeleteService(service string) *Cmd
- func (c KubectlCmd) ExecPod(pod, container string, cmd []string) *Cmd
- func (c KubectlCmd) ExecShell(resource, path string) *Cmd
- func (c KubectlCmd) ExposePod(pod string, host string, port int) *Cmd
- func (c KubectlCmd) GetConfigMapKey(ctx context.Context, name, key string) (string, error)
- func (_ KubectlCmd) GetContainerFromDeployment(container string, d *apps.Deployment) (*core.Container, error)
- func (c KubectlCmd) GetContainers(deployment apps.Deployment) []string
- func (c KubectlCmd) GetDeployment(ctx context.Context, deployment string) (*apps.Deployment, error)
- func (c KubectlCmd) GetDeploymentFromConfigMap(ctx context.Context, deployment, configMapKey string) (*apps.Deployment, error)
- func (c KubectlCmd) GetDeployments(ctx context.Context) ([]string, error)
- func (c KubectlCmd) GetImage(ctx context.Context, deployment v1.Deployment, container string) (string, error)
- func (c KubectlCmd) GetLatestRevision(ctx context.Context, deployment string) (int, error)
- func (c KubectlCmd) GetMostRecentRunningPodBySelectors(ctx context.Context, selectors map[string]string) (string, error)
- func (c KubectlCmd) GetNamespaces(ctx context.Context) ([]string, error)
- func (c KubectlCmd) GetPIDsOf(ctx context.Context, pod, container, process string) (pids []string, err error)
- func (c KubectlCmd) GetPods(ctx context.Context, selectors map[string]string) ([]string, error)
- func (c KubectlCmd) GetPodsByLabels(ctx context.Context, labels []string) ([]string, error)
- func (c KubectlCmd) KillPidsOnPod(ctx context.Context, pod, container string, pids []string, murder bool) []error
- func (c KubectlCmd) PatchDeployment(patch, deployment string) *Cmd
- func (c KubectlCmd) PortForwardPod(pod string, host string, port int) *Cmd
- func (c KubectlCmd) RestartDeployment(deployment string) *Cmd
- func (c KubectlCmd) RolloutUndo(deployment string, revision int) *Cmd
- func (c KubectlCmd) RolloutUndoToPrevious(deployment string) *Cmd
- func (c KubectlCmd) UpdateChangeCause(deployment, cause string) *Cmd
- func (c KubectlCmd) ValidateContainer(d apps.Deployment, container *string) error
- func (c KubectlCmd) ValidateDeployment(ctx context.Context, namespace, deployment string) error
- func (c KubectlCmd) ValidateNamespace(ctx context.Context, namespace string) error
- func (c KubectlCmd) ValidatePod(ctx context.Context, d apps.Deployment, pod *string) error
- func (c KubectlCmd) WaitForPodState(pod, condition, timeout string) *Cmd
- func (c KubectlCmd) WaitForRollout(deployment, timeout string) *Cmd
- type Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerCmd ¶
type DockerCmd struct {
Cmd
}
func NewDockerCommand ¶
func NewDockerCommand() *DockerCmd
func (DockerCmd) GetPlatform ¶
func (DockerCmd) ImageInspect ¶
type HelmCmd ¶
type HelmCmd struct {
Cmd
}
func NewHelmCommand ¶
func NewHelmCommand() *HelmCmd
func (HelmCmd) GetLatestRevision ¶
type KubectlCmd ¶
type KubectlCmd struct {
Cmd
}
func NewKubectlCommand ¶
func NewKubectlCommand() *KubectlCmd
func (KubectlCmd) CopyToPod ¶
func (c KubectlCmd) CopyToPod(pod, container, source, destination string) *Cmd
func (KubectlCmd) CreateConfigMap ¶
func (c KubectlCmd) CreateConfigMap(name string, keyMap map[string]string) *KubectlCmd
func (KubectlCmd) CreateConfigMapFromFile ¶
func (c KubectlCmd) CreateConfigMapFromFile(name, path string) *Cmd
func (KubectlCmd) DeleteConfigMap ¶
func (c KubectlCmd) DeleteConfigMap(name string) *Cmd
func (KubectlCmd) DeleteService ¶
func (c KubectlCmd) DeleteService(service string) *Cmd
func (KubectlCmd) ExecShell ¶
func (c KubectlCmd) ExecShell(resource, path string) *Cmd
func (KubectlCmd) GetConfigMapKey ¶
func (KubectlCmd) GetContainerFromDeployment ¶
func (_ KubectlCmd) GetContainerFromDeployment(container string, d *apps.Deployment) (*core.Container, error)
func (KubectlCmd) GetContainers ¶
func (c KubectlCmd) GetContainers(deployment apps.Deployment) []string
func (KubectlCmd) GetDeployment ¶
func (c KubectlCmd) GetDeployment(ctx context.Context, deployment string) (*apps.Deployment, error)
func (KubectlCmd) GetDeploymentFromConfigMap ¶
func (c KubectlCmd) GetDeploymentFromConfigMap(ctx context.Context, deployment, configMapKey string) (*apps.Deployment, error)
func (KubectlCmd) GetDeployments ¶
func (c KubectlCmd) GetDeployments(ctx context.Context) ([]string, error)
func (KubectlCmd) GetImage ¶
func (c KubectlCmd) GetImage(ctx context.Context, deployment v1.Deployment, container string) (string, error)
func (KubectlCmd) GetLatestRevision ¶
func (KubectlCmd) GetMostRecentRunningPodBySelectors ¶
func (KubectlCmd) GetNamespaces ¶
func (c KubectlCmd) GetNamespaces(ctx context.Context) ([]string, error)
func (KubectlCmd) GetPodsByLabels ¶
func (KubectlCmd) KillPidsOnPod ¶
func (KubectlCmd) PatchDeployment ¶
func (c KubectlCmd) PatchDeployment(patch, deployment string) *Cmd
func (KubectlCmd) PortForwardPod ¶
func (c KubectlCmd) PortForwardPod(pod string, host string, port int) *Cmd
func (KubectlCmd) RestartDeployment ¶
func (c KubectlCmd) RestartDeployment(deployment string) *Cmd
func (KubectlCmd) RolloutUndo ¶
func (c KubectlCmd) RolloutUndo(deployment string, revision int) *Cmd
func (KubectlCmd) RolloutUndoToPrevious ¶
func (c KubectlCmd) RolloutUndoToPrevious(deployment string) *Cmd
func (KubectlCmd) UpdateChangeCause ¶
func (c KubectlCmd) UpdateChangeCause(deployment, cause string) *Cmd
func (KubectlCmd) ValidateContainer ¶
func (c KubectlCmd) ValidateContainer(d apps.Deployment, container *string) error
func (KubectlCmd) ValidateDeployment ¶
func (c KubectlCmd) ValidateDeployment(ctx context.Context, namespace, deployment string) error
func (KubectlCmd) ValidateNamespace ¶
func (c KubectlCmd) ValidateNamespace(ctx context.Context, namespace string) error
func (KubectlCmd) ValidatePod ¶
func (c KubectlCmd) ValidatePod(ctx context.Context, d apps.Deployment, pod *string) error
func (KubectlCmd) WaitForPodState ¶
func (c KubectlCmd) WaitForPodState(pod, condition, timeout string) *Cmd
func (KubectlCmd) WaitForRollout ¶
func (c KubectlCmd) WaitForRollout(deployment, timeout string) *Cmd
Click to show internal directories.
Click to hide internal directories.