Documentation ¶
Index ¶
Constants ¶
View Source
const (
IPAddressLookupTimeout = 60 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func ValidateCPUCount ¶
ValidateCPUCount validates the CPU count and returns the validated CPU count. If the CPU count is less than the minimum allowed CPU count, the function returns the minimum allowed CPU count and an error.
func ValidateMemorySize ¶
ValidateMemorySize validates the memory size and returns the validated memory size. If the memory size is less than the minimum allowed memory size, the function returns the minimum allowed memory size and an error.
Types ¶
type VirtualMachineInstance ¶
type VirtualMachineInstance struct { IPAddress string CreatedAt time.Time StartedAt *time.Time FinishedAt *time.Time *vz.VirtualMachine // contains filtered or unexported fields }
VirtualMachineInstance represents a virtual machine instance.
func NewVirtualMachineInstance ¶
func NewVirtualMachineInstance(ctx context.Context, config *config.VirtualMachineConfiguration) (i *VirtualMachineInstance, err error)
NewVirtualMachineInstance creates a new virtual machine instance.
Click to show internal directories.
Click to hide internal directories.