Documentation ¶
Index ¶
- Variables
- func Curl(args ...string) *gexec.Session
- func CurlSkipSSL(skip bool, args ...string) *gexec.Session
- func NewCmdRunner(session *gexec.Session, timeout time.Duration) *cmdRunner
- func NewCmdWaiter(session *gexec.Session, timeout time.Duration) *cmdWaiter
- func Run(executable string, args ...string) *gexec.Session
- type CommandStarter
- type DefaultReporter
- type Reporter
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 NewCmdRunner ¶
NewCmdRunner has default value of exitCode to be 0, and attempts to be 1. To change these, use the builder methods WithExitCode and WithAttempts.
func NewCmdWaiter ¶
NewCmdRunner has default value of exitCode to be 0, and attempts to be 1. To change these, use the builder methods WithExitCode and WithAttempts.
Types ¶
type CommandStarter ¶
type CommandStarter struct {
// contains filtered or unexported fields
}
func NewCommandStarter ¶
func NewCommandStarter() *CommandStarter
func NewCommandStarterWithReporter ¶
func NewCommandStarterWithReporter(reporter Reporter) *CommandStarter
type DefaultReporter ¶
type DefaultReporter struct{}
func NewDefaultReporter ¶
func NewDefaultReporter() *DefaultReporter
Click to show internal directories.
Click to hide internal directories.