mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user