Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneVmRequest ¶
type CloneVmRequest struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Group string `json:"group,omitempty"` Location string `json:"location,omitempty"` IsBindingHost bool `json:"isBindingHost,omitempty"` Config Config `json:"vmConfig,omitempty"` VmCustomization Customization `json:"vmCustomization,omitempty"` }
type CloneVmResponse ¶
type Customization ¶
type Customization struct { OsType string `json:"osType,omitempty"` Hostname string `json:"hostname,omitempty"` IsUpdateVmPassword bool `json:"isUpdateVmPassword,omitempty"` Password string `json:"password,omitempty"` NicSpecification []NicSpecification `json:"nicSpecification,omitempty"` }
type DeleteVmResponse ¶
type ImportTemplateRequest ¶ added in v0.0.4
type ImportTemplateRequest struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Location string `json:"location,omitempty"` VmConfig Config `json:"vmConfig,omitempty"` OsOptions OsOption `json:"osOptions,omitempty"` Url string `json:"url,omitempty"` Protocol string `json:"protocol,omitempty"` IsTemplate bool `json:"isTemplate,omitempty"` }
type ImportTemplateResponse ¶ added in v0.0.4
type ListVmResponse ¶
type Manager ¶
type Manager interface { ListVm(isTemplate bool) ([]Vm, error) GetVM(vmUri string) (*Vm, error) CloneVm(templateUri string, request CloneVmRequest) (*CloneVmResponse, error) DeleteVm(vmUri string) (*DeleteVmResponse, error) UploadImage(vmUri string, request ImportTemplateRequest) (*ImportTemplateResponse, error) }
func NewManager ¶
func NewManager(client client.FusionComputeClient, siteUri string) Manager
type NicSpecification ¶
type Vm ¶
type Vm struct { Urn string `json:"urn,omitempty,omitempty"` Uri string `json:"uri,omitempty"` Uuid string `json:"uuid,omitempty"` Name string `json:"name,omitempty"` Arch string `json:"arch,omitempty"` Description string `json:"description,omitempty"` Group string `json:"group,omitempty"` Location string `json:"location,omitempty"` LocationName string `json:"locationName,omitempty"` HostUrn string `json:"hostUrn,omitempty"` Status string `json:"status,omitempty"` PvDriverStatus string `json:"pvDriverStatus,omitempty"` ToolInstallStatus string `json:"toolInstallStatus,omitempty"` CdRomStatus string `json:"cdRomStatus,omitempty"` IsTemplate bool `json:"isTemplate,omitempty"` IsLinkClone bool `json:"isLinkClone,omitempty"` IsBindingHost bool `json:"isBindingHost,omitempty"` CreateTime string `json:"createTime,omitempty"` ToolsVersion string `json:"toolsVersion,omitempty"` HostName string `json:"hostName,omitempty"` ClusterName string `json:"clusterName,omitempty"` HugePage string `json:"hugePage,omitempty"` Idle int `json:"idle,omitempty"` VmType int `json:"vmType,omitempty"` DrStatus int `json:"drStatus,omitempty"` RpoStatus int `json:"rpoStatus,omitempty"` InitSyncStatus int `json:"initSyncStatus,omitempty"` VmConfig Config `json:"vmConfig,omitempty"` }
Click to show internal directories.
Click to hide internal directories.