Documentation ¶
Index ¶
- func ResumeState(vlib *virtual.VboxLibrary, workerPool worker.WorkerPool, statePath string) (*environment.EnvPool, error)
- func SaveState(envPool *environment.EnvPool, statePath string) error
- type Container
- type EnvConfig
- type Environment
- type Exercise
- type Guacamole
- type IPTables
- type Lab
- type LabConf
- type Network
- type State
- type Vm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResumeState ¶
func ResumeState(vlib *virtual.VboxLibrary, workerPool worker.WorkerPool, statePath string) (*environment.EnvPool, error)
Resumes from a saves state, which means it reasembles the environment pool in order to restore it across ex. restarts
Types ¶
type Container ¶
type Container struct { Id string Conf virtual.ContainerConfig Network virtual.Network }
type Environment ¶
type Exercise ¶
type Exercise struct { ContainerOpts []exercise.ContainerOptions VboxOpts []exercise.ExerciseInstanceConfig Tag string Net *virtual.Network DnsAddr string DnsRecords []exercise.RecordConfig Ips []int Containers []*virtual.Container Vms []*virtual.Vm }
type Lab ¶
type Lab struct { Tag string Type lab.LabType Frontends map[string]lab.FrontendConf Exercises map[string]Exercise ExerciseConfigs []exercise.ExerciseConfig DisabledExercises []string DnsRecords []*lab.DNSRecord Network *virtual.Network DnsServer *dns.Server DhcpServer *dhcp.Server DnsAddress string IsVPN bool GuacUsername string GuacPassword string VpnConfs []string }
type LabConf ¶
type LabConf struct { Frontends []virtual.InstanceConfig ExerciseConfs []exercise.ExerciseConfig DisabledExercises []string }
type State ¶
type State struct {
Environments map[string]Environment `json:"environments`
}
Click to show internal directories.
Click to hide internal directories.