executer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Env []string
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd() (*Cmd, error)

func (*Cmd) Output

func (c *Cmd) Output() *CmdOutput

func (*Cmd) Run

func (c *Cmd) Run(cmd string) error

type CmdOutput

type CmdOutput struct {
	Host    string
	Command string
	Stdout  bytes.Buffer
	Stderr  bytes.Buffer
}

func (*CmdOutput) Display

func (o *CmdOutput) Display()

type Executer

type Executer interface {
	Run(config.Task, OnRunCallback) error
}

func New

func New(e string) Executer

type Local

type Local struct{}

func (Local) Run

func (e Local) Run(task config.Task, callback OnRunCallback) error

type OnRunCallback

type OnRunCallback func(*CmdOutput)

type Parallel

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

func (Parallel) Run

func (e Parallel) Run(task config.Task, callback OnRunCallback) error

type SSH

type SSH struct{}

func (SSH) Run

func (e SSH) Run(task config.Task, callback OnRunCallback) error

Jump to

Keyboard shortcuts

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