darwin

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const (
	VsockPortExec  = 5000
	VsockPortVFS   = 5001
	VsockPortReady = 5002
)

Variables

This section is empty.

Functions

func CopyRootfsToTemp

func CopyRootfsToTemp(srcPath string) (string, error)

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) Create

func (b *DarwinBackend) Create(ctx context.Context, config *vm.VMConfig) (vm.Machine, error)

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 (m *DarwinMachine) ExecInteractive(ctx context.Context, command string, opts *api.ExecOptions, rows, cols uint16, stdin io.Reader, stdout io.Writer, resizeCh <-chan [2]uint16) (int, error)

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) Start

func (m *DarwinMachine) Start(ctx context.Context) error

func (*DarwinMachine) Stop

func (m *DarwinMachine) Stop(ctx context.Context) error

func (*DarwinMachine) VsockFD

func (m *DarwinMachine) VsockFD() (int, error)

func (*DarwinMachine) Wait

func (m *DarwinMachine) Wait(ctx context.Context) 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

Jump to

Keyboard shortcuts

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