mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #62 in YUNIONIO/onecloud from ~TANGBIN/onecloud:feature/tb-aliyun-resources-update to release/2.1.0
* commit 'bb5beccf47ba342e0ec5caa816e9b7f019881b23': add more resources interfaces
This commit is contained in:
@@ -153,7 +153,12 @@ type ICloudVM interface {
|
||||
StopVM(isForce bool) error
|
||||
DeleteVM() error
|
||||
|
||||
UpdateVM(name string) error
|
||||
RebuildRoot(imageId string) error
|
||||
DeployVM(resetPassword bool, keypair string, deleteKeypair bool) error
|
||||
ChangeConfig(instanceId string,ncpu int, vmem int) error
|
||||
GetVNCInfo() (jsonutils.JSONObject, error)
|
||||
AttachDisk(diskId string) error
|
||||
}
|
||||
|
||||
type ICloudNic interface {
|
||||
@@ -193,7 +198,8 @@ type ICloudDisk interface {
|
||||
GetCacheMode() string
|
||||
GetMountpoint() string
|
||||
Delete() error
|
||||
Resize(int64) error
|
||||
|
||||
Resize(newSize int64) error
|
||||
}
|
||||
|
||||
type ICloudVpc interface {
|
||||
|
||||
@@ -542,3 +542,23 @@ func (self *SInstance) SyncSecurityGroup(secgroupId string, name string, rules [
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *SInstance) UpdateVM(name string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SInstance) RebuildRoot(imageId string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SInstance) DeployVM(resetPassword bool, keypair string, deleteKeypair bool) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SInstance) ChangeConfig(instanceId string,ncpu int, vmem int) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SInstance) AttachDisk(diskId string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
@@ -209,3 +209,23 @@ func (self *SVirtualMachine) acquireVmrcUrl() (jsonutils.JSONObject, error) {
|
||||
ret.Add(jsonutils.NewString(url), "url")
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
func (self *SVirtualMachine) UpdateVM(name string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SVirtualMachine) RebuildRoot(imageId string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SVirtualMachine) DeployVM(resetPassword bool, keypair string, deleteKeypair bool) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SVirtualMachine) ChangeConfig(instanceId string,ncpu int, vmem int) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
|
||||
func (self *SVirtualMachine) AttachDisk(diskId string) error {
|
||||
return fmt.Errorf("not implement")
|
||||
}
|
||||
Reference in New Issue
Block a user