Documentation ¶
Index ¶
- func New(opts ...types.MachineOption) (types.Machine, error)
- func RandStringRunes(n int) string
- type Docker
- func (q *Docker) Alive() bool
- func (q *Docker) Clean() error
- func (q *Docker) Command(cmd string) (string, error)
- func (q *Docker) Config() types.MachineConfig
- func (q *Docker) Create(ctx context.Context) (context.Context, error)
- func (q *Docker) CreateDisk(_, _ string) error
- func (q *Docker) DetachCD() error
- func (q *Docker) ReceiveFile(src, dst string) error
- func (q *Docker) Screenshot() (string, error)
- func (q *Docker) SendFile(src, dst, _ string) error
- func (q *Docker) Stop() error
- type QEMU
- func (q *QEMU) Alive() bool
- func (q *QEMU) Clean() error
- func (q *QEMU) Command(cmd string) (string, error)
- func (q *QEMU) Config() types.MachineConfig
- func (q *QEMU) Create(ctx context.Context) (context.Context, error)
- func (q *QEMU) CreateDisk(diskname, size string) error
- func (q *QEMU) DetachCD() error
- func (q *QEMU) ReceiveFile(src, dst string) error
- func (q *QEMU) Screenshot() (string, error)
- func (q *QEMU) SendFile(src, dst, permissions string) error
- func (q *QEMU) Stop() error
- type VBox
- func (v *VBox) Clean() error
- func (v *VBox) Command(cmd string) (string, error)
- func (v *VBox) Config() types.MachineConfig
- func (v *VBox) Create(ctx context.Context) (context.Context, error)
- func (v *VBox) CreateDisk(diskname, size string) error
- func (v *VBox) DetachCD() error
- func (v *VBox) ReceiveFile(src, dst string) error
- func (v *VBox) Restart() error
- func (v *VBox) Screenshot() (string, error)
- func (v *VBox) SendFile(src, dst, permissions string) error
- func (v *VBox) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandStringRunes ¶
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) Config ¶
func (q *Docker) Config() types.MachineConfig
func (*Docker) CreateDisk ¶
func (*Docker) ReceiveFile ¶
func (*Docker) Screenshot ¶
type QEMU ¶
type QEMU struct {
// contains filtered or unexported fields
}
func (*QEMU) Config ¶
func (q *QEMU) Config() types.MachineConfig
func (*QEMU) CreateDisk ¶
func (*QEMU) ReceiveFile ¶
func (*QEMU) Screenshot ¶
qemu monitor: https://qemu-project.gitlab.io/qemu/system/monitor.html nice explanation of how it works: https://unix.stackexchange.com/a/476617 unix sockets with golang: https://dev.to/douglasmakey/understanding-unix-domain-sockets-in-golang-32n8
type VBox ¶
type VBox struct {
// contains filtered or unexported fields
}
func (*VBox) Config ¶
func (v *VBox) Config() types.MachineConfig
func (*VBox) CreateDisk ¶
func (*VBox) ReceiveFile ¶
func (*VBox) Screenshot ¶
Click to show internal directories.
Click to hide internal directories.