Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
Main MainConfig `ini:"main"`
Network NetworkConfig `ini:"network"`
Images ImagesConfig `ini:"images"`
}
AppConfig representa as configurações globais da aplicação
type Config ¶
type Config struct {
VMs []VM `yaml:",inline"`
}
Config representa o arquivo de configuração completo
type DistroInfo ¶
DistroInfo representa informações de uma distribuição
type ImagesConfig ¶
type ImagesConfig struct {
PathUpstreamImages string `ini:"path_upstream_images"`
PathVMImages string `ini:"path_vm_images"`
}
ImagesConfig representa configurações de imagens
type KVMCompose ¶
type KVMCompose struct {
// contains filtered or unexported fields
}
KVMCompose é a estrutura principal do aplicativo
func NewKVMCompose ¶
func NewKVMCompose(composeFile string) *KVMCompose
NewKVMCompose cria uma nova instância do KVMCompose
func (*KVMCompose) List ¶
func (kvm *KVMCompose) List() error
List lista todas as VMs com seus status
type MainConfig ¶
MainConfig representa configurações principais
type Network ¶
type Network struct {
HostBridge string `yaml:"host_bridge"`
GuestIPv4 string `yaml:"guest_ipv4"`
GuestGateway4 string `yaml:"guest_gateway4"`
GuestNameservers []string `yaml:"guest_nameservers"`
}
Network representa a configuração de rede de uma VM
type NetworkConfig ¶
NetworkConfig representa configurações de rede
type VM ¶
type VM struct {
Name string `yaml:"name"`
Distro string `yaml:"distro"`
Memory int `yaml:"memory"`
VCPUs int `yaml:"vcpus"`
DiskSize int `yaml:"disk_size"`
Username string `yaml:"username"`
Group []string `yaml:"group"`
SSHKeyFile string `yaml:"ssh_key_file"`
Networks []Network `yaml:"networks"`
}
VM representa uma máquina virtual no arquivo de configuração
Click to show internal directories.
Click to hide internal directories.