console

package
v0.0.0-...-9e127a4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromptExpression = `(\$ |\# )`
	CRLF             = "\r\n"
)

Variables

This section is empty.

Functions

func RetValue

func RetValue(retcode string) string

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

func (Console) LoginToAlpine

func (c Console) LoginToAlpine() error

LoginToAlpine performs a console login to an Alpine based VM

func (Console) RunCommand

func (c Console) RunCommand(command string, timeout time.Duration) (string, error)

RunCommand runs the command line from `command` connecting to an already logged in console at vmi and waiting `timeout` for command to return. Note: A multiline command is not supported.

Jump to

Keyboard shortcuts

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