matcher

package
v0.0.0-...-c5da712 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Machine types.Machine

Functions

func DetachCD

func DetachCD() error

func EventuallyConnects

func EventuallyConnects(t ...int)

func GatherAllLogs

func GatherAllLogs(services []string, logFiles []string)

GatherAllLogs will try to gather as much info from the system as possible, including services, dmesg and os related info.

func GatherLog

func GatherLog(logPath string)

GatherLog will try to scp the given log from the machine to a local file.

func HasDir

func HasDir(s string)

func HasFile

func HasFile(s string)

func Reboot

func Reboot(t ...int)

func Scp

func Scp(s, d, permissions string) error

func Screenshot

func Screenshot() (string, error)

func Sudo

func Sudo(c string) (string, error)

Types

type VM

type VM struct {
	StateDir string
	// contains filtered or unexported fields
}

func NewVM

func NewVM(m types.Machine, s string) VM

func (VM) Destroy

func (vm VM) Destroy(additionalCleanup func(vm VM)) error

func (VM) DetachCD

func (vm VM) DetachCD() error

func (VM) EventuallyConnects

func (vm VM) EventuallyConnects(t ...int)

func (VM) GatherAllLogs

func (vm VM) GatherAllLogs(services []string, logFiles []string)

func (VM) GatherLog

func (vm VM) GatherLog(logPath string)

func (VM) HasDir

func (vm VM) HasDir(s string)

func (VM) HasFile

func (vm VM) HasFile(s string)

func (VM) Reboot

func (vm VM) Reboot(t ...int)

func (VM) Scp

func (vm VM) Scp(s, d, permissions string) error

func (VM) Screenshot

func (vm VM) Screenshot() (string, error)

func (*VM) Start

func (vm *VM) Start(ctx context.Context) (context.Context, error)

func (VM) Sudo

func (vm VM) Sudo(s string) (string, error)

Jump to

Keyboard shortcuts

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