runner

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginWatch

func BeginWatch(dirConfig *home.EdwardConfiguration, service services.ServiceOrGroup, restart func() error) (func(), error)

BeginWatch starts auto-restart watches for the provided services. The function returned will close the watcher.

Types

type Log

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

Log provides the io.Writer interface to publish service logs to file

func (*Log) Len added in v1.8.8

func (r *Log) Len() int

func (*Log) Printf

func (r *Log) Printf(format string, a ...interface{})

Printf prints a message to a RunnerLog

func (*Log) Write

func (r *Log) Write(p []byte) (int, error)

Write writes a slice of bytes to a RunnerLog

type Runner

type Runner struct {
	Service *services.ServiceConfig

	DirConfig *home.EdwardConfiguration

	NoWatch    bool
	WorkingDir string
	// contains filtered or unexported fields
}

Runner provides state and functions for running a given service

func NewRunner added in v1.8.9

func NewRunner(
	cfg services.OperationConfig,
	service *services.ServiceConfig,
	dirConfig *home.EdwardConfiguration,
	noWatch bool,
	workingDir string,
) (*Runner, error)

func (*Runner) Run

func (r *Runner) Run(args []string) error

Jump to

Keyboard shortcuts

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