Versions in this module Expand all Collapse all v0 v0.3.0 Feb 23, 2023 Changes in this version + type Command interface + Run func(name string, args []string) error + type Disk interface + Create func(pool string, id uuid.UUID) error + Delete func(pool string, id uuid.UUID) error + type HostStatAccess interface + GetCpu func() (entity.Cpu, error) + GetMem func() (entity.Memory, error) + GetStoragePools func() ([]entity.StoragePool, error) + type HostUseCase interface + Get func() (entity.Host, error) + type ID interface + GenID func() (uuid.UUID, error) + type Socket interface + Connect func() error + Create func(id uuid.UUID) (any, error) + Delete func(id uuid.UUID) error + List func() ([]string, error) + SearchFor func(id uuid.UUID) bool + Send func(data []byte) error + type State string + const RUNNING + const SHUTDOWN + const UNKNOWN + type Storage struct + Name string + Path string + type StorageAccess interface + Browse func() ([]Storage, error) + Read func(name string) (Storage, error) + type VmDataAccess interface + Add func(vm entity.Vm) error + Browse func() ([]entity.Vm, error) + Delete func(id uuid.UUID) error + Edit func(id uuid.UUID, vm entity.VmCore) (entity.Vm, error) + Read func(id uuid.UUID) (entity.Vm, error) + type VmUseCase interface + Create func(req entity.VmCore) (entity.Vm, error) + Delete func(id uuid.UUID) error + GetPower func(id uuid.UUID) State + ReadAll func() ([]entity.Vm, error) + ReadById func(id uuid.UUID) (entity.Vm, error) + Restart func(id uuid.UUID) error + Shutdown func(id uuid.UUID) error + Start func(id uuid.UUID) error + Update func(id uuid.UUID, vm entity.VmCore) (entity.Vm, error)