Documentation
¶
Rendered for darwin/amd64
Index ¶
- Constants
- func CopyRootfsToTemp(srcPath string) (string, error)
- type DarwinBackend
- type DarwinMachine
- func (m *DarwinMachine) Close() error
- func (m *DarwinMachine) Config() *vm.VMConfig
- func (m *DarwinMachine) Exec(ctx context.Context, command string, opts *api.ExecOptions) (*api.ExecResult, error)
- func (m *DarwinMachine) ExecInteractive(ctx context.Context, command string, opts *api.ExecOptions, rows, cols uint16, ...) (int, error)
- func (m *DarwinMachine) NetworkFD() (int, error)
- func (m *DarwinMachine) NetworkFile() *os.File
- func (m *DarwinMachine) PID() int
- func (m *DarwinMachine) RootfsPath() string
- func (m *DarwinMachine) SetupVFSListener() (*vz.VirtioSocketListener, error)
- func (m *DarwinMachine) SocketDevice() *vz.VirtioSocketDevice
- func (m *DarwinMachine) Start(ctx context.Context) error
- func (m *DarwinMachine) Stop(ctx context.Context) error
- func (m *DarwinMachine) VsockFD() (int, error)
- func (m *DarwinMachine) Wait(ctx context.Context) error
- type SocketPair
Constants ¶
View Source
const ( VsockPortExec = 5000 VsockPortVFS = 5001 VsockPortReady = 5002 )
Variables ¶
This section is empty.
Functions ¶
func CopyRootfsToTemp ¶
CopyRootfsToTemp copies the rootfs image to a temp file so each VM gets a clean copy
Types ¶
type DarwinBackend ¶
type DarwinBackend struct{}
func NewDarwinBackend ¶
func NewDarwinBackend() *DarwinBackend
func (*DarwinBackend) Name ¶
func (b *DarwinBackend) Name() string
type DarwinMachine ¶
type DarwinMachine struct {
// contains filtered or unexported fields
}
func (*DarwinMachine) Close ¶
func (m *DarwinMachine) Close() error
func (*DarwinMachine) Config ¶
func (m *DarwinMachine) Config() *vm.VMConfig
func (*DarwinMachine) Exec ¶
func (m *DarwinMachine) Exec(ctx context.Context, command string, opts *api.ExecOptions) (*api.ExecResult, error)
func (*DarwinMachine) ExecInteractive ¶
func (*DarwinMachine) NetworkFD ¶
func (m *DarwinMachine) NetworkFD() (int, error)
func (*DarwinMachine) NetworkFile ¶
func (m *DarwinMachine) NetworkFile() *os.File
func (*DarwinMachine) PID ¶
func (m *DarwinMachine) PID() int
func (*DarwinMachine) RootfsPath ¶
func (m *DarwinMachine) RootfsPath() string
func (*DarwinMachine) SetupVFSListener ¶
func (m *DarwinMachine) SetupVFSListener() (*vz.VirtioSocketListener, error)
func (*DarwinMachine) SocketDevice ¶
func (m *DarwinMachine) SocketDevice() *vz.VirtioSocketDevice
func (*DarwinMachine) VsockFD ¶
func (m *DarwinMachine) VsockFD() (int, error)
type SocketPair ¶
type SocketPair struct {
// contains filtered or unexported fields
}
func (*SocketPair) Close ¶
func (sp *SocketPair) Close() error
func (*SocketPair) GuestFD ¶
func (sp *SocketPair) GuestFD() int
func (*SocketPair) GuestFile ¶
func (sp *SocketPair) GuestFile() *os.File
func (*SocketPair) HostFD ¶
func (sp *SocketPair) HostFD() int
func (*SocketPair) HostFile ¶
func (sp *SocketPair) HostFile() *os.File
Click to show internal directories.
Click to hide internal directories.