executor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	GetName() string
	InitCommand(string, []string, map[string]string, []string) (*bufio.Reader, error)
	Start() error
	Wait() (bool, error)
	Close() error
	GetTags() []string
}

type LocalExecutor

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

func NewLocalExecutor

func NewLocalExecutor() *LocalExecutor

func (*LocalExecutor) Close

func (le *LocalExecutor) Close() error

func (*LocalExecutor) GetName

func (le *LocalExecutor) GetName() string

func (*LocalExecutor) GetTags

func (le *LocalExecutor) GetTags() []string

func (*LocalExecutor) InitCommand

func (le *LocalExecutor) InitCommand(workdir string, cmd []string, envVars map[string]string, tags []string) (*bufio.Reader, error)

func (*LocalExecutor) Start

func (le *LocalExecutor) Start() error

func (*LocalExecutor) Wait

func (le *LocalExecutor) Wait() (bool, error)

type NodeSSHExecutor

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

func NewNodeSSHExecutor

func NewNodeSSHExecutor(nd *node.Node) (*NodeSSHExecutor, error)

func (*NodeSSHExecutor) Close

func (ne *NodeSSHExecutor) Close() error

func (*NodeSSHExecutor) GetName

func (ne *NodeSSHExecutor) GetName() string

func (*NodeSSHExecutor) GetTags

func (ne *NodeSSHExecutor) GetTags() []string

func (*NodeSSHExecutor) InitCommand

func (ne *NodeSSHExecutor) InitCommand(workdir string, cmd []string, envVars map[string]string, tags []string) (*bufio.Reader, error)

func (*NodeSSHExecutor) Start

func (ne *NodeSSHExecutor) Start() error

func (*NodeSSHExecutor) Wait

func (ne *NodeSSHExecutor) Wait() (bool, error)

Jump to

Keyboard shortcuts

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