runner

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdOut = "stdout"
	StdErr = "stderr"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logstreamer

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

func NewLogstreamer

func NewLogstreamer(stdType string, name string) *Logstreamer

func (*Logstreamer) Close

func (l *Logstreamer) Close()

func (*Logstreamer) Flush

func (l *Logstreamer) Flush() error

func (*Logstreamer) OutputLines

func (l *Logstreamer) OutputLines() (err error)

func (*Logstreamer) Write

func (l *Logstreamer) Write(p []byte) (n int, err error)

type Runner

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

Runner is the struct that manage running local applications

func NewRunner

func NewRunner(proxy *proxy.Proxy, project *config.Project) *Runner

NewRunner instancites a Runner struct from configuration data

func (*Runner) Restart

func (r *Runner) Restart(application *config.Application)

Restart kills the current application launch (if it exists) and launch a new one

func (*Runner) Run

func (r *Runner) Run(application *config.Application)

Run launches the application

func (*Runner) RunAll

func (r *Runner) RunAll()

RunAll runs all local applications in separated goroutines

func (*Runner) SetupAll added in v0.0.7

func (r *Runner) SetupAll()

SetupAll runs setup commands for all applications in case their directory does not already exists

func (*Runner) Stop added in v0.0.5

func (r *Runner) Stop() error

Stop stops all the currently active local applications

Jump to

Keyboard shortcuts

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