Documentation ¶
Index ¶
- type Manage
- type ManageOption
- type Variant
- type VirtualMachine
- func (vm *VirtualMachine) AsVirtualMachine() *compute.VirtualMachine
- func (vm *VirtualMachine) AsVirtualMachineScaleSetVM() *compute.VirtualMachineScaleSetVM
- func (vm *VirtualMachine) GetInstanceViewStatus() *[]compute.InstanceViewStatus
- func (vm *VirtualMachine) GetProvisioningState() string
- func (vm *VirtualMachine) IsVirtualMachine() bool
- func (vm *VirtualMachine) IsVirtualMachineScaleSetVM() bool
- func (vm *VirtualMachine) ManagedByVMSS() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManageOption ¶
type ManageOption = func(*VirtualMachine)
func ByVMSS ¶
func ByVMSS(vmssName string) ManageOption
ByVMSS specifies that the virtual machine is managed by a virtual machine scale set.
type VirtualMachine ¶
type VirtualMachine struct { Variant Variant Manage Manage VMSSName string // re-export fields // common fields ID string Name string Location string Tags map[string]string Zones []string Type string Plan *compute.Plan Resources *[]compute.VirtualMachineExtension // fields of VirtualMachine Identity *compute.VirtualMachineIdentity VirtualMachineProperties *compute.VirtualMachineProperties // fields of VirtualMachineScaleSetVM InstanceID string SKU *compute.Sku VirtualMachineScaleSetVMProperties *compute.VirtualMachineScaleSetVMProperties // contains filtered or unexported fields }
func FromVirtualMachine ¶
func FromVirtualMachine(vm *compute.VirtualMachine, opt ...ManageOption) *VirtualMachine
func FromVirtualMachineScaleSetVM ¶
func FromVirtualMachineScaleSetVM(vm *compute.VirtualMachineScaleSetVM, opt ManageOption) *VirtualMachine
func (*VirtualMachine) AsVirtualMachine ¶
func (vm *VirtualMachine) AsVirtualMachine() *compute.VirtualMachine
func (*VirtualMachine) AsVirtualMachineScaleSetVM ¶
func (vm *VirtualMachine) AsVirtualMachineScaleSetVM() *compute.VirtualMachineScaleSetVM
func (*VirtualMachine) GetInstanceViewStatus ¶ added in v1.26.20
func (vm *VirtualMachine) GetInstanceViewStatus() *[]compute.InstanceViewStatus
func (*VirtualMachine) GetProvisioningState ¶ added in v1.26.20
func (vm *VirtualMachine) GetProvisioningState() string
func (*VirtualMachine) IsVirtualMachine ¶
func (vm *VirtualMachine) IsVirtualMachine() bool
func (*VirtualMachine) IsVirtualMachineScaleSetVM ¶
func (vm *VirtualMachine) IsVirtualMachineScaleSetVM() bool
func (*VirtualMachine) ManagedByVMSS ¶
func (vm *VirtualMachine) ManagedByVMSS() bool
Click to show internal directories.
Click to hide internal directories.