Documentation ¶
Index ¶
- type Alistorage
- func (aliStorage *Alistorage) AttachDisk(request interface{}) (resp interface{}, err error)
- func (aliStorage *Alistorage) CreateDisk(request interface{}) (resp interface{}, err error)
- func (aliStorage *Alistorage) CreateSnapshot(request interface{}) (resp interface{}, err error)
- func (aliStorage *Alistorage) DeleteDisk(request interface{}) (resp interface{}, err error)
- func (aliStorage *Alistorage) DeleteSnapshot(request interface{}) (resp interface{}, err error)
- func (aliStorage *Alistorage) DetachDisk(request interface{}) (resp interface{}, err error)
- type AttachDisk
- type AttachDiskBuilder
- func (b *AttachDiskBuilder) Build() (map[string]interface{}, error)
- func (b *AttachDiskBuilder) DeleteWithInstance(deleteWithInstance bool) *AttachDiskBuilder
- func (b *AttachDiskBuilder) DiskID(diskID string) *AttachDiskBuilder
- func (b *AttachDiskBuilder) InstanceID(instanceID string) *AttachDiskBuilder
- type CreateDisk
- type CreateDiskBuilder
- func (b *CreateDiskBuilder) Build() (map[string]interface{}, error)
- func (b *CreateDiskBuilder) ClientToken(clientToken string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) Description(description string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) DiskCategory(diskCategory string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) DiskName(diskName string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) Encrypted(encrypted bool) *CreateDiskBuilder
- func (b *CreateDiskBuilder) RegionID(regionID string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) Size(size int) *CreateDiskBuilder
- func (b *CreateDiskBuilder) SnapshotID(snapshotID string) *CreateDiskBuilder
- func (b *CreateDiskBuilder) ZoneID(zoneID string) *CreateDiskBuilder
- type CreateDiskResp
- type CreateSnapshot
- type CreateSnapshotBuilder
- func (b *CreateSnapshotBuilder) Build() (map[string]interface{}, error)
- func (b *CreateSnapshotBuilder) ClientToken(clientToken string) *CreateSnapshotBuilder
- func (b *CreateSnapshotBuilder) Description(description string) *CreateSnapshotBuilder
- func (b *CreateSnapshotBuilder) DiskID(diskID string) *CreateSnapshotBuilder
- func (b *CreateSnapshotBuilder) SnapshotName(snapshotName string) *CreateSnapshotBuilder
- type DeleteDisk
- type DeleteDiskBuilder
- type DeleteSnapshot
- type DeleteSnapshotBuilder
- type DetachDisk
- type DetachDiskBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alistorage ¶
type Alistorage struct { }
Alistorage struct represents Alistorage attribute and method associates with it.
func (*Alistorage) AttachDisk ¶
func (aliStorage *Alistorage) AttachDisk(request interface{}) (resp interface{}, err error)
AttachDisk attach ECS-Disk to ECS, accept map[string]interface{}
func (*Alistorage) CreateDisk ¶
func (aliStorage *Alistorage) CreateDisk(request interface{}) (resp interface{}, err error)
CreateDisk create ECS-Disk accept map[string]interface{}
func (*Alistorage) CreateSnapshot ¶
func (aliStorage *Alistorage) CreateSnapshot(request interface{}) (resp interface{}, err error)
CreateSnapshot create snapshot accept map[string]interface{}
func (*Alistorage) DeleteDisk ¶
func (aliStorage *Alistorage) DeleteDisk(request interface{}) (resp interface{}, err error)
DeleteDisk delete ECS-Disk accept map[string]interface{}
func (*Alistorage) DeleteSnapshot ¶
func (aliStorage *Alistorage) DeleteSnapshot(request interface{}) (resp interface{}, err error)
DeleteSnapshot delete snapshot accept map[string]interface{}
func (*Alistorage) DetachDisk ¶
func (aliStorage *Alistorage) DetachDisk(request interface{}) (resp interface{}, err error)
DetachDisk detach ECS-Disk from ECS, accept map[string]interface{}
type AttachDisk ¶
AttachDisk to store all attribute of attach Ali-cloud ECS-Disk to ECS
type AttachDiskBuilder ¶
type AttachDiskBuilder struct {
// contains filtered or unexported fields
}
AttachDisk builder pattern code
func NewAttachDiskBuilder ¶
func NewAttachDiskBuilder() *AttachDiskBuilder
func (*AttachDiskBuilder) Build ¶
func (b *AttachDiskBuilder) Build() (map[string]interface{}, error)
func (*AttachDiskBuilder) DeleteWithInstance ¶
func (b *AttachDiskBuilder) DeleteWithInstance(deleteWithInstance bool) *AttachDiskBuilder
func (*AttachDiskBuilder) DiskID ¶
func (b *AttachDiskBuilder) DiskID(diskID string) *AttachDiskBuilder
func (*AttachDiskBuilder) InstanceID ¶
func (b *AttachDiskBuilder) InstanceID(instanceID string) *AttachDiskBuilder
type CreateDisk ¶
type CreateDisk struct { RegionID string ZoneID string DiskName string Description string Encrypted bool DiskCategory string Size int SnapshotID string ClientToken string }
CreateDisk to store all attribute to create Ali-cloud ECS-Disk
type CreateDiskBuilder ¶
type CreateDiskBuilder struct {
// contains filtered or unexported fields
}
CreateDisk builder pattern code
func NewCreateDiskBuilder ¶
func NewCreateDiskBuilder() *CreateDiskBuilder
func (*CreateDiskBuilder) Build ¶
func (b *CreateDiskBuilder) Build() (map[string]interface{}, error)
func (*CreateDiskBuilder) ClientToken ¶
func (b *CreateDiskBuilder) ClientToken(clientToken string) *CreateDiskBuilder
func (*CreateDiskBuilder) Description ¶
func (b *CreateDiskBuilder) Description(description string) *CreateDiskBuilder
func (*CreateDiskBuilder) DiskCategory ¶
func (b *CreateDiskBuilder) DiskCategory(diskCategory string) *CreateDiskBuilder
func (*CreateDiskBuilder) DiskName ¶
func (b *CreateDiskBuilder) DiskName(diskName string) *CreateDiskBuilder
func (*CreateDiskBuilder) Encrypted ¶
func (b *CreateDiskBuilder) Encrypted(encrypted bool) *CreateDiskBuilder
func (*CreateDiskBuilder) RegionID ¶
func (b *CreateDiskBuilder) RegionID(regionID string) *CreateDiskBuilder
func (*CreateDiskBuilder) Size ¶
func (b *CreateDiskBuilder) Size(size int) *CreateDiskBuilder
func (*CreateDiskBuilder) SnapshotID ¶
func (b *CreateDiskBuilder) SnapshotID(snapshotID string) *CreateDiskBuilder
func (*CreateDiskBuilder) ZoneID ¶
func (b *CreateDiskBuilder) ZoneID(zoneID string) *CreateDiskBuilder
type CreateDiskResp ¶
func ParseCreateDiskResp ¶
func ParseCreateDiskResp(resp interface{}) (createDiskResp CreateDiskResp, err error)
type CreateSnapshot ¶
type CreateSnapshot struct { DiskID string SnapshotName string Description string ClientToken string }
CreateSnapshot to store all attribute of create Ali-cloud ECS-Disk 's Snapshot
type CreateSnapshotBuilder ¶
type CreateSnapshotBuilder struct {
// contains filtered or unexported fields
}
CreateSnapshot builder pattern code
func NewCreateSnapshotBuilder ¶
func NewCreateSnapshotBuilder() *CreateSnapshotBuilder
func (*CreateSnapshotBuilder) Build ¶
func (b *CreateSnapshotBuilder) Build() (map[string]interface{}, error)
func (*CreateSnapshotBuilder) ClientToken ¶
func (b *CreateSnapshotBuilder) ClientToken(clientToken string) *CreateSnapshotBuilder
func (*CreateSnapshotBuilder) Description ¶
func (b *CreateSnapshotBuilder) Description(description string) *CreateSnapshotBuilder
func (*CreateSnapshotBuilder) DiskID ¶
func (b *CreateSnapshotBuilder) DiskID(diskID string) *CreateSnapshotBuilder
func (*CreateSnapshotBuilder) SnapshotName ¶
func (b *CreateSnapshotBuilder) SnapshotName(snapshotName string) *CreateSnapshotBuilder
type DeleteDisk ¶
type DeleteDisk struct {
DiskID string
}
DeleteDisk to store all attribute to delete Ali-cloud ECS-Disk
type DeleteDiskBuilder ¶
type DeleteDiskBuilder struct {
// contains filtered or unexported fields
}
DeleteDisk builder pattern code
func NewDeleteDiskBuilder ¶
func NewDeleteDiskBuilder() *DeleteDiskBuilder
func (*DeleteDiskBuilder) Build ¶
func (b *DeleteDiskBuilder) Build() (map[string]interface{}, error)
func (*DeleteDiskBuilder) DiskID ¶
func (b *DeleteDiskBuilder) DiskID(diskID string) *DeleteDiskBuilder
type DeleteSnapshot ¶
type DeleteSnapshot struct {
SnapshotID string
}
DeleteSnapshot to store all attribute of delete Ali-cloud ECS-Disk 's Snapshot
type DeleteSnapshotBuilder ¶
type DeleteSnapshotBuilder struct {
// contains filtered or unexported fields
}
DeleteSnapshot builder pattern code
func NewDeleteSnapshotBuilder ¶
func NewDeleteSnapshotBuilder() *DeleteSnapshotBuilder
func (*DeleteSnapshotBuilder) Build ¶
func (b *DeleteSnapshotBuilder) Build() (map[string]interface{}, error)
func (*DeleteSnapshotBuilder) SnapshotID ¶
func (b *DeleteSnapshotBuilder) SnapshotID(snapshotID string) *DeleteSnapshotBuilder
type DetachDisk ¶
DetachDisk to store all attribute of detach Ali-cloud ECS-Disk from ECS
type DetachDiskBuilder ¶
type DetachDiskBuilder struct {
// contains filtered or unexported fields
}
DetachDisk builder pattern code
func NewDetachDiskBuilder ¶
func NewDetachDiskBuilder() *DetachDiskBuilder
func (*DetachDiskBuilder) Build ¶
func (b *DetachDiskBuilder) Build() (map[string]interface{}, error)
func (*DetachDiskBuilder) DiskID ¶
func (b *DetachDiskBuilder) DiskID(diskID string) *DetachDiskBuilder
func (*DetachDiskBuilder) InstanceID ¶
func (b *DetachDiskBuilder) InstanceID(instanceID string) *DetachDiskBuilder