Versions in this module Expand all Collapse all v0 v0.1.5 Dec 21, 2024 v0.1.4 Dec 21, 2024 v0.1.3 Dec 21, 2024 v0.1.2 Dec 21, 2024 Changes in this version + var RETRY_WAIT = func() int { ... }() + type BaseVirt struct + func NewBaseVirt(injector di.Injector) *BaseVirt + func (v *BaseVirt) Initialize() error + type ColimaVirt struct + func NewColimaVirt(injector di.Injector) *ColimaVirt + func (v *ColimaVirt) Down() error + func (v *ColimaVirt) GetVMInfo() (VMInfo, error) + func (v *ColimaVirt) PrintInfo() error + func (v *ColimaVirt) Up() error + func (v *ColimaVirt) WriteConfig() error + type ContainerInfo struct + Address string + Labels map[string]string + Name string + type ContainerRuntime interface + GetContainerInfo func(name ...string) ([]ContainerInfo, error) + type DockerVirt struct + func NewDockerVirt(injector di.Injector) *DockerVirt + func (v *DockerVirt) Down() error + func (v *DockerVirt) GetContainerInfo(name ...string) ([]ContainerInfo, error) + func (v *DockerVirt) Initialize() error + func (v *DockerVirt) PrintInfo() error + func (v *DockerVirt) Up() error + func (v *DockerVirt) WriteConfig() error + type MockVirt struct + DownFunc func() error + GetContainerInfoFunc func(name ...string) ([]ContainerInfo, error) + GetVMInfoFunc func() (VMInfo, error) + InitializeFunc func() error + PrintInfoFunc func() error + UpFunc func(verbose ...bool) error + WriteConfigFunc func() error + func NewMockVirt() *MockVirt + func (m *MockVirt) Down() error + func (m *MockVirt) GetContainerInfo(name ...string) ([]ContainerInfo, error) + func (m *MockVirt) GetVMInfo() (VMInfo, error) + func (m *MockVirt) Initialize() error + func (m *MockVirt) PrintInfo() error + func (m *MockVirt) Up() error + func (m *MockVirt) WriteConfig() error + type VMInfo struct + Address string + Arch string + CPUs int + Disk int + Memory int + Name string + type Virt interface + Down func() error + Initialize func() error + PrintInfo func() error + Up func() error + WriteConfig func() error + type VirtualMachine interface + GetVMInfo func() (VMInfo, error) + type YAMLEncoder interface + Close func() error + Encode func(v interface{}) error