execute

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultExecutor

type DefaultExecutor struct {
	Message      string
	AllowKubectl bool
}

DefaultExecutor is a default implementations of Executor

func (*DefaultExecutor) Execute

func (e *DefaultExecutor) Execute() string

Execute executes commands and returns output

type Executor

type Executor interface {
	Execute() string
}

Executor is an interface for processes to execute commands

func NewDefaultExecutor

func NewDefaultExecutor(msg string, allowkubectl bool) Executor

NewDefaultExecutor returns new Executor object

Jump to

Keyboard shortcuts

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