machine

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...types.MachineOption) (types.Machine, error)

New returns a new machine.

func RandStringRunes

func RandStringRunes(n int) string

Types

type Docker

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

func (*Docker) Alive

func (q *Docker) Alive() bool

func (*Docker) Clean

func (q *Docker) Clean() error

func (*Docker) Command

func (q *Docker) Command(cmd string) (string, error)

func (*Docker) Config

func (q *Docker) Config() types.MachineConfig

func (*Docker) Create

func (q *Docker) Create(ctx context.Context) (context.Context, error)

func (*Docker) CreateDisk

func (q *Docker) CreateDisk(_, _ string) error

func (*Docker) DetachCD

func (q *Docker) DetachCD() error

func (*Docker) ReceiveFile

func (q *Docker) ReceiveFile(src, dst string) error

func (*Docker) Screenshot

func (q *Docker) Screenshot() (string, error)

func (*Docker) SendFile

func (q *Docker) SendFile(src, dst, _ string) error

func (*Docker) Stop

func (q *Docker) Stop() error

type QEMU

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

func (*QEMU) Alive

func (q *QEMU) Alive() bool

func (*QEMU) Clean

func (q *QEMU) Clean() error

func (*QEMU) Command

func (q *QEMU) Command(cmd string) (string, error)

func (*QEMU) Config

func (q *QEMU) Config() types.MachineConfig

func (*QEMU) Create

func (q *QEMU) Create(ctx context.Context) (context.Context, error)

func (*QEMU) CreateDisk

func (q *QEMU) CreateDisk(diskname, size string) error

func (*QEMU) DetachCD

func (q *QEMU) DetachCD() error

func (*QEMU) ReceiveFile

func (q *QEMU) ReceiveFile(src, dst string) error

func (*QEMU) SendFile

func (q *QEMU) SendFile(src, dst, permissions string) error

func (*QEMU) Stop

func (q *QEMU) Stop() error

type VBox

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

func (*VBox) Clean

func (v *VBox) Clean() error

func (*VBox) Command

func (v *VBox) Command(cmd string) (string, error)

func (*VBox) Config

func (v *VBox) Config() types.MachineConfig

func (*VBox) Create

func (v *VBox) Create(ctx context.Context) (context.Context, error)

func (*VBox) CreateDisk

func (v *VBox) CreateDisk(diskname, size string) error

func (*VBox) DetachCD

func (v *VBox) DetachCD() error

func (*VBox) ReceiveFile

func (v *VBox) ReceiveFile(src, dst string) error

func (*VBox) Restart

func (v *VBox) Restart() error

func (*VBox) Screenshot

func (v *VBox) Screenshot() (string, error)

func (*VBox) SendFile

func (v *VBox) SendFile(src, dst, permissions string) error

func (*VBox) Stop

func (v *VBox) Stop() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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