Documentation ¶
Index ¶
- func NewClusterInstancetype(opts ...InstancetypeSpecOption) *instancetypev1alpha2.VirtualMachineClusterInstancetype
- func NewClusterInstancetypeFromVMI(vmi *v1.VirtualMachineInstance) *instancetypev1alpha2.VirtualMachineClusterInstancetype
- func NewClusterPreference(opts ...PreferenceSpecOption) *instancetypev1alpha2.VirtualMachineClusterPreference
- func NewInstancetype(opts ...InstancetypeSpecOption) *instancetypev1alpha2.VirtualMachineInstancetype
- func NewInstancetypeFromVMI(vmi *v1.VirtualMachineInstance) *instancetypev1alpha2.VirtualMachineInstancetype
- func NewPreference(opts ...PreferenceSpecOption) *instancetypev1alpha2.VirtualMachinePreference
- type InstancetypeSpecOption
- type PreferenceSpecOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterInstancetype ¶
func NewClusterInstancetype(opts ...InstancetypeSpecOption) *instancetypev1alpha2.VirtualMachineClusterInstancetype
func NewClusterInstancetypeFromVMI ¶
func NewClusterInstancetypeFromVMI(vmi *v1.VirtualMachineInstance) *instancetypev1alpha2.VirtualMachineClusterInstancetype
func NewClusterPreference ¶
func NewClusterPreference(opts ...PreferenceSpecOption) *instancetypev1alpha2.VirtualMachineClusterPreference
func NewInstancetype ¶
func NewInstancetype(opts ...InstancetypeSpecOption) *instancetypev1alpha2.VirtualMachineInstancetype
func NewInstancetypeFromVMI ¶
func NewInstancetypeFromVMI(vmi *v1.VirtualMachineInstance) *instancetypev1alpha2.VirtualMachineInstancetype
func NewPreference ¶
func NewPreference(opts ...PreferenceSpecOption) *instancetypev1alpha2.VirtualMachinePreference
Types ¶
type InstancetypeSpecOption ¶
type InstancetypeSpecOption func(*instancetypev1alpha2.VirtualMachineInstancetypeSpec)
func WithCPUs ¶
func WithCPUs(vCPUs uint32) InstancetypeSpecOption
func WithMemory ¶
func WithMemory(memory resource.Quantity) InstancetypeSpecOption
type PreferenceSpecOption ¶
type PreferenceSpecOption func(*instancetypev1alpha2.VirtualMachinePreferenceSpec)
func WithPreferredCPUTopology ¶
func WithPreferredCPUTopology(topology instancetypev1alpha2.PreferredCPUTopology) PreferenceSpecOption
Click to show internal directories.
Click to hide internal directories.