Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuestExec ¶
func GuestExec(virConn cli.Connection, domName string, command string, args []string, timeoutSeconds int32) (string, error)
GuestExec sends the provided command and args to the guest agent for execution and returns an error on an unsucessful exit code The resulting stdout will be returned as a string
Types ¶
type ExecExitCode ¶
type ExecExitCode struct {
ExitCode int
}
ExecExitCode returned at non-zero return codes
func (ExecExitCode) Error ¶
func (e ExecExitCode) Error() string
Click to show internal directories.
Click to hide internal directories.