Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Instance
 - type InternalInstance
 - func (i *InternalInstance) CanBeModified() bool
 - func (i *InternalInstance) GetBatchID() *int
 - func (i *InternalInstance) GetInventoryPath() string
 - func (i *InternalInstance) GetMigrationStatus() api.MigrationStatusType
 - func (i *InternalInstance) GetMigrationStatusString() string
 - func (i *InternalInstance) GetName() string
 - func (i *InternalInstance) GetOSType() api.OSType
 - func (i *InternalInstance) GetOverrides() api.InstanceOverride
 - func (i *InternalInstance) GetSecretToken() uuid.UUID
 - func (i *InternalInstance) GetSourceID() int
 - func (i *InternalInstance) GetUUID() uuid.UUID
 - func (i *InternalInstance) IsMigrating() bool
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance interface {
	// Returns the UUID for this instance.
	GetUUID() uuid.UUID
	// Returns the inventory path for this instance.
	GetInventoryPath() string
	// Returns the name of the instance, which may not be unique among all instances for a given source.
	// If a unique, human-readable identifier is needed, use the GetInventoryPath() method.
	GetName() string
	// Returns true if the instance can be modified.
	CanBeModified() bool
	// Returns true if the instance is migrating.
	IsMigrating() bool
	// Returns the ID of the batch this instance is assigned to, if any.
	GetBatchID() *int
	// Returns the source ID for this instance.
	GetSourceID() int
	// Returns the migration status of this instance.
	GetMigrationStatus() api.MigrationStatusType
	// Returns the free-form string migration status of this instance.
	GetMigrationStatusString() string
	// Returns a secret token that can be used by the worker to authenticate when updating the state for this instance.
	GetSecretToken() uuid.UUID
	// Returns the overrides for this instance, if any.
	GetOverrides() api.InstanceOverride
	// Returns the OS type for this instance.
	GetOSType() api.OSType
}
    Interface definition for all migration manager instances.
type InternalInstance ¶
type InternalInstance struct {
	api.Instance `yaml:",inline"`
	NeedsDiskImport bool
	SecretToken     uuid.UUID
	SourceID        int
}
    func NewInstance ¶
func NewInstance(UUID uuid.UUID, inventoryPath string, annotation string, sourceID int, batchID *int, guestToolsVersion int, architecture string, hardwareVersion string, os string, osVersion string, devices []api.InstanceDeviceInfo, disks []api.InstanceDiskInfo, nics []api.InstanceNICInfo, snapshots []api.InstanceSnapshotInfo, numberCPUs int, cpuAffinity []int32, numberOfCoresPerSocket int, memoryInBytes int64, memoryReservationInBytes int64, useLegacyBios bool, secureBootEnabled bool, tpmPresent bool) *InternalInstance
Returns a new Instance ready for use.
func (*InternalInstance) CanBeModified ¶
func (i *InternalInstance) CanBeModified() bool
func (*InternalInstance) GetBatchID ¶
func (i *InternalInstance) GetBatchID() *int
func (*InternalInstance) GetInventoryPath ¶
func (i *InternalInstance) GetInventoryPath() string
func (*InternalInstance) GetMigrationStatus ¶
func (i *InternalInstance) GetMigrationStatus() api.MigrationStatusType
func (*InternalInstance) GetMigrationStatusString ¶
func (i *InternalInstance) GetMigrationStatusString() string
func (*InternalInstance) GetName ¶
func (i *InternalInstance) GetName() string
func (*InternalInstance) GetOSType ¶
func (i *InternalInstance) GetOSType() api.OSType
The mapping of OS version strings to OS types is determined from https://dp-downloads.broadcom.com/api-content/apis/API_VWSA_001/8.0U3/html/ReferenceGuides/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
func (*InternalInstance) GetOverrides ¶
func (i *InternalInstance) GetOverrides() api.InstanceOverride
func (*InternalInstance) GetSecretToken ¶
func (i *InternalInstance) GetSecretToken() uuid.UUID
func (*InternalInstance) GetSourceID ¶
func (i *InternalInstance) GetSourceID() int
func (*InternalInstance) GetUUID ¶
func (i *InternalInstance) GetUUID() uuid.UUID
func (*InternalInstance) IsMigrating ¶
func (i *InternalInstance) IsMigrating() bool
 Click to show internal directories. 
   Click to hide internal directories.