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