Documentation ¶
Index ¶
- func GatherExpect(batcher []expect.Batcher, timeout time.Duration, ssh *ssh.Client) ([]expect.BatchRes, error)
- func SSHClient(c SSHConfig) (*ssh.Client, error)
- func SendEmail(c *configuration.Config, subject, message string) error
- func SimpleBatcher(definition [][]string) ([]expect.Batcher, error)
- func VariableBatcher(definition [][]string) ([]expect.Batcher, error)
- func WriteFile(workspace, config, name string) error
- func WriteRunResult(filename string, count int) error
- type SSHConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatherExpect ¶
func GatherExpect(batcher []expect.Batcher, timeout time.Duration, ssh *ssh.Client) ([]expect.BatchRes, error)
GatherExpect initializes expect with our SSH connection and gathers results of the batch.
func SendEmail ¶
func SendEmail(c *configuration.Config, subject, message string) error
SendEmail to user - Consider using a library.
func SimpleBatcher ¶
SimpleBatcher implements a straight forward send/receive pattern.
func VariableBatcher ¶
VariableBatcher uses send and receive, with the possibility to skip steps. TODO: Do we need https://godoc.org/google.golang.org/grpc/codes ?
func WriteRunResult ¶
WriteRunResult will write the count value into the runresult.log file and update the timestamp each run.
Types ¶
Click to show internal directories.
Click to hide internal directories.