utils

package
v0.0.0-...-b3562de Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSSHKeypair

func GenerateSSHKeypair() ([]byte, []byte, error)

GenerateSSHKeypair ...

func Run

func Run(dir string, additionalCmdEnvs []string, name string, args ...string) error

Run ...

func RunAndReturnCombinedOutput

func RunAndReturnCombinedOutput(dir string, additionalCmdEnvs []string, name string, args ...string) (string, error)

RunAndReturnCombinedOutput ...

func RunCommandThroughSSH

func RunCommandThroughSSH(sshConfigModel config.SSHConfigModel, cmdToRunWithSSH string) error

RunCommandThroughSSH ...

func RunCommandThroughSSHWithWriters

func RunCommandThroughSSHWithWriters(sshConfigModel config.SSHConfigModel, cmdToRunWithSSH string, stdout, stderr io.Writer) error

RunCommandThroughSSHWithWriters ... TODO: this could possibly use StartAsyncCommandThroughSSHWithWriters and `return cmd.Wait()`

func StartAsyncCommandThroughSSHWithWriters

func StartAsyncCommandThroughSSHWithWriters(sshConfigModel config.SSHConfigModel, cmdToRunWithSSH string, stdout, stderr io.Writer) (*exec.Cmd, error)

StartAsyncCommandThroughSSHWithWriters ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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