snapshotpolicy list create delete apply cancel finish except that disk sync snapshot policy

add copyright

fix some imprefection

fix test file
This commit is contained in:
Rain
2019-08-16 14:03:15 +08:00
parent 9bc0c41b45
commit 577dce1bc5
27 changed files with 1042 additions and 261 deletions
+4 -3
View File
@@ -80,8 +80,8 @@ type ICloudRegion interface {
CreateSnapshotPolicy(*SnapshotPolicyInput) (string, error)
DeleteSnapshotPolicy(string) error
ApplySnapshotPolicyToDisks(snapshotPolicyId string, diskIds []string) error
CancelSnapshotPolicyToDisks(diskIds []string) error
ApplySnapshotPolicyToDisks(snapshotPolicyId string, diskId string) error
CancelSnapshotPolicyToDisks(snapshotPolicyId string, diskId string) error
GetISnapshotPolicies() ([]ICloudSnapshotPolicy, error)
GetISnapshotPolicyById(snapshotPolicyId string) (ICloudSnapshotPolicy, error)
@@ -373,7 +373,7 @@ type ICloudDisk interface {
GetISnapshot(idStr string) (ICloudSnapshot, error)
GetISnapshots() ([]ICloudSnapshot, error)
GetExtSnapshotPolicyId() string
GetExtSnapshotPolicyIds() []string
Resize(ctx context.Context, newSizeMB int64) error
Reset(ctx context.Context, snapshotId string) (string, error)
@@ -393,6 +393,7 @@ type ICloudSnapshot interface {
type ICloudSnapshotPolicy interface {
IVirtualResource
IsActivated() bool
GetRetentionDays() int
GetRepeatWeekdays() ([]int, error)
GetTimePoints() ([]int, error)