Documentation
¶
Index ¶
- Constants
- func ReadConfig(path string) (map[string]VirtConfig, error)
- func WriteConfig(path string, mvc map[string]VirtConfig) error
- type VirtConfig
- type VirtEnv
- func (ve *VirtEnv) Chroot() error
- func (ve *VirtEnv) Devinit()
- func (ve *VirtEnv) Execute() error
- func (ve *VirtEnv) Mount() error
- func (ve *VirtEnv) Netinit() error
- func (ve *VirtEnv) SetCreds() error
- func (ve *VirtEnv) SetShell()
- func (ve *VirtEnv) Stdinit(shellMode bool) error
- func (ve *VirtEnv) Umount() error
Constants ¶
View Source
const ConfigPath = "/etc/rootve"
Default configuration file path
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
func ReadConfig(path string) (map[string]VirtConfig, error)
Read configuration map from toml file
func WriteConfig ¶
func WriteConfig(path string, mvc map[string]VirtConfig) error
Write configuration map to toml file
Types ¶
type VirtConfig ¶
type VirtConfig struct { // Environmental Root string Autoboot bool Directory string Uid int Gid int Environment []string // Client process CommandPath string CommandArgs []string // Networking Networking bool Bridge string Interface string AddressV4 string NetmaskV4 string }
Configuration entry structure
func MakeVirtConfig ¶
func MakeVirtConfig() VirtConfig
Allocate and initialize VE configuration with default values
Click to show internal directories.
Click to hide internal directories.