runner

package
v0.0.0-...-e56b6ec Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandInterceptor = func(cmd *exec.Cmd) *exec.Cmd {
	return cmd
}
View Source
var SkipSSLValidation bool

Functions

func Curl

func Curl(args ...string) *gexec.Session

func CurlSkipSSL

func CurlSkipSSL(skip bool, args ...string) *gexec.Session

func Run

func Run(executable string, args ...string) *gexec.Session

Types

type CommandStarter

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

func NewCommandStarter

func NewCommandStarter() *CommandStarter

func NewCommandStarterWithReporter

func NewCommandStarterWithReporter(reporter Reporter) *CommandStarter

func (*CommandStarter) Start

func (r *CommandStarter) Start(executable string, args ...string) *gexec.Session

type DefaultReporter

type DefaultReporter struct{}

func NewDefaultReporter

func NewDefaultReporter() *DefaultReporter

func (*DefaultReporter) Report

func (r *DefaultReporter) Report(startTime time.Time, cmd *exec.Cmd)

type Reporter

type Reporter interface {
	Report(time.Time, *exec.Cmd)
}

Jump to

Keyboard shortcuts

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