exec

package
v0.0.13-rc11-z5nctl3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package exec is a generated GoMock package.

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 ...

type MockCliInterface

type MockCliInterface struct {
	// contains filtered or unexported fields
}

MockCliInterface is a mock of CliInterface interface

func NewMockCliInterface

func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface

NewMockCliInterface creates a new mock instance

func (*MockCliInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCliInterface) Kubectl

func (m *MockCliInterface) Kubectl() kubectl.CliInterface

Kubectl mocks base method

func (*MockCliInterface) SSH

SSH mocks base method

func (*MockCliInterface) SSHUttle

func (m *MockCliInterface) SSHUttle() sshuttle.CliInterface

SSHUttle mocks base method

type MockCliInterfaceMockRecorder

type MockCliInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface

func (*MockCliInterfaceMockRecorder) Kubectl

func (mr *MockCliInterfaceMockRecorder) Kubectl() *gomock.Call

Kubectl indicates an expected call of Kubectl

func (*MockCliInterfaceMockRecorder) SSH

SSH indicates an expected call of SSH

func (*MockCliInterfaceMockRecorder) SSHUttle

func (mr *MockCliInterfaceMockRecorder) SSHUttle() *gomock.Call

SSHUttle indicates an expected call of SSHUttle

Directories

Path Synopsis
Package kubectl is a generated GoMock package.
Package kubectl is a generated GoMock package.
Package ssh is a generated GoMock package.
Package ssh is a generated GoMock package.
Package sshuttle is a generated GoMock package.
Package sshuttle is a generated GoMock package.

Jump to

Keyboard shortcuts

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