agent

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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