local

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 5 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 struct {
	Debug bool
}

Executor is an implementation of executor on a local machine. Based on standard `exec` package. Expects a local machine to have `sh` executable.

func (Executor) Execute

func (r Executor) Execute(ctx context.Context, cmd *exec.Cmd) ([]byte, error)

func (Executor) ReadFile

func (r Executor) ReadFile(ctx context.Context, path string) ([]byte, error)

func (Executor) Run

func (r Executor) Run(ctx context.Context, cmd *exec.Cmd) error

func (Executor) WriteFile

func (r Executor) WriteFile(ctx context.Context, path string, data []byte) error

Jump to

Keyboard shortcuts

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