Documentation
¶
Index ¶
- Variables
- func ParseSSHKeyScan(knownHosts []byte) (ssh.HostKeyCallback, error)
- type BlockDevicePassthroughConfig
- type Config
- type DriveConfig
- type FileManager
- func (fm *FileManager) InitLVM() error
- func (fm *FileManager) Lsblk() ([]byte, error)
- func (fm *FileManager) Mount(devName string, mo MountOptions) error
- func (fm *FileManager) PreopenLUKSContainer(containerDevPath string) error
- func (fm *FileManager) StartAFP(pwd string) error
- func (fm *FileManager) StartFTP(pwd string, passivePortStart uint16, passivePortCount uint16, extIP net.IP) error
- func (fm *FileManager) StartSMB(pwd string) error
- type MountOptions
- type PassthroughConfig
- type PortForwardingRule
- type TapConfig
- type USBDevicePassthroughConfig
- type VM
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
Functions ¶
func ParseSSHKeyScan ¶
func ParseSSHKeyScan(knownHosts []byte) (ssh.HostKeyCallback, error)
Types ¶
type Config ¶
type Config struct {
CdromImagePath string
BIOSPath string
Drives []DriveConfig
MemoryAlloc uint32 // In KiB.
PassthroughConfig PassthroughConfig
ExtraPortForwardingRules []PortForwardingRule
// Networking
UnrestrictedNetworking bool
Taps []TapConfig
// Timeouts
OSUpTimeout time.Duration
SSHUpTimeout time.Duration
// Mostly debug-related options.
Debug bool // This will show the display and forward all QEMU warnings/errors to stderr.
InstallBaseUtilities bool
}
type DriveConfig ¶
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
func NewFileManager ¶
func NewFileManager(logger *slog.Logger, vm *VM) *FileManager
func (*FileManager) InitLVM ¶ added in v0.2.0
func (fm *FileManager) InitLVM() error
func (*FileManager) Lsblk ¶
func (fm *FileManager) Lsblk() ([]byte, error)
func (*FileManager) Mount ¶
func (fm *FileManager) Mount(devName string, mo MountOptions) error
func (*FileManager) PreopenLUKSContainer ¶ added in v0.2.0
func (fm *FileManager) PreopenLUKSContainer(containerDevPath string) error
func (*FileManager) StartAFP ¶
func (fm *FileManager) StartAFP(pwd string) error
func (*FileManager) StartSMB ¶
func (fm *FileManager) StartSMB(pwd string) error
type MountOptions ¶
type PassthroughConfig ¶
type PassthroughConfig struct {
USB []USBDevicePassthroughConfig
Block []BlockDevicePassthroughConfig
}
type PortForwardingRule ¶
func ParsePortForwardingRuleString ¶
func ParsePortForwardingRuleString(s string) (PortForwardingRule, error)
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func (*VM) ConfigureInterfaceStaticNet ¶
func (*VM) SSHUpNotifyChan ¶
func (vm *VM) SSHUpNotifyChan() chan struct{}
Click to show internal directories.
Click to hide internal directories.