exec

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundRun

func BackgroundRun(cmd *exec.Cmd, name string, debug bool) (err error)

BackgroundRun run cmd in background

func BackgroundRunWithCtx

func BackgroundRunWithCtx(cmdCtx *CMDContext, debug bool) (err error)

BackgroundRunWithCtx run cmd in background with context

func RunAndWait

func RunAndWait(cmd *exec.Cmd, name string, debug bool) (err error)

RunAndWait run cmd

Types

type CMDContext

type CMDContext struct {
	Ctx  context.Context
	Cmd  *exec.Cmd
	Name string
	Stop chan bool // notify parent current Cmd occur error
}

CMDContext context of cmd

type Cli

type Cli struct {
	KubeOptions []string
}

Cli ...

func (*Cli) Kubectl

func (c *Cli) Kubectl() kubectl.CliInterface

Kubectl ...

func (*Cli) SSH

func (c *Cli) SSH() ssh.CliInterface

SSH ...

func (*Cli) SSHUttle

func (c *Cli) SSHUttle() sshuttle.CliInterface

SSHUttle ...

type CliInterface

type CliInterface interface {
	Kubectl() kubectl.CliInterface
	SSHUttle() sshuttle.CliInterface
	SSH() ssh.CliInterface
}

CliInterface ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL