internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port             int    // SSH server port
	HostKey          string // Path to SSH host key
	VMCIDR           string // CIDR block for VM IP addresses
	VMMemory         int    // VM memory in MB
	VMCPUs           int    // Number of VM CPUs
	MaxConcurrentVMs int    // Maximum number of concurrent VMs (0 = unlimited)
	DataDir          string // Directory for VM snapshots and data
	Rootfs           string // Path to rootfs image
	AllowInternet    bool   // Allow VMs to access the Internet
}

Config holds all configuration options for the ssh-hypervisor

func (*Config) GetVMIPRange

func (c *Config) GetVMIPRange() (*net.IPNet, error)

GetVMIPRange returns the usable IP range for VMs

func (*Config) Validate

func (c *Config) Validate() error

Validate checks if the configuration is valid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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