deploy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicRunStarted = "run.started"
)
View Source
const (
	TopicRunTimeout = "run_timeout"
)

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(ctx context.Context, cmd string, runOpts *RunOpts, args ...string) (string, *localErrs.Error)

Types

type RunOpts added in v1.0.8

type RunOpts struct {
	Dir      string
	Env      []string
	PrintLog bool
	TimeOut  time.Duration
	Nice     int // default nice value is 5, range is -20 to 19
}

func DefOpts added in v1.0.8

func DefOpts() *RunOpts

func (*RunOpts) DirExists added in v1.0.8

func (opts *RunOpts) DirExists() bool

func (*RunOpts) EnvExists added in v1.0.8

func (opts *RunOpts) EnvExists() bool

func (*RunOpts) PrintLogEnabled added in v1.0.8

func (opts *RunOpts) PrintLogEnabled() bool

func (*RunOpts) SetDir added in v1.0.8

func (opts *RunOpts) SetDir(dir string) *RunOpts

func (*RunOpts) SetEnv added in v1.0.8

func (opts *RunOpts) SetEnv(env []string) *RunOpts

func (*RunOpts) SetNice added in v1.0.23

func (opts *RunOpts) SetNice(nice int) *RunOpts

func (*RunOpts) SetPrintLog added in v1.0.8

func (opts *RunOpts) SetPrintLog(printLog bool) *RunOpts

func (*RunOpts) SetTimeOut added in v1.0.8

func (opts *RunOpts) SetTimeOut(timeOut time.Duration) *RunOpts

func (*RunOpts) TimeOutValid added in v1.0.8

func (opts *RunOpts) TimeOutValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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