Documentation
¶
Index ¶
- Constants
- func CheckSnapshotDeleted(volumeId string) bool
- func ExecuteAsynchronizedWorkflow(asynWorkflow AsynchronizedWorkflow) error
- func ExecuteSynchronizedWorkflow(synWorkflow SynchronizedWorkflow) error
- func ParseInterval(interval string) (int, error)
- type AsynchronizedExecutor
- type AsynchronizedWorkflow
- type DeleteSnapshotExecutor
- type IntervalSnapshotExecutor
- type SynchronizedExecutor
- type SynchronizedWorkflow
Constants ¶
View Source
const ( RETRY_INTERVAL = 5 MAX_RETRY_TIME = 10 )
Variables ¶
This section is empty.
Functions ¶
func CheckSnapshotDeleted ¶
func ExecuteAsynchronizedWorkflow ¶
func ExecuteAsynchronizedWorkflow(asynWorkflow AsynchronizedWorkflow) error
ExecuteAsynchronizedWorkflow
func ExecuteSynchronizedWorkflow ¶
func ExecuteSynchronizedWorkflow(synWorkflow SynchronizedWorkflow) error
ExecuteSynchronizedWorkflow
func ParseInterval ¶
Types ¶
type AsynchronizedExecutor ¶
AsynchronizedExecutor
type AsynchronizedWorkflow ¶
type AsynchronizedWorkflow map[string]AsynchronizedExecutor
AsynchronizedWorkflow
func RegisterAsynchronizedWorkflow ¶
func RegisterAsynchronizedWorkflow( req interface{}, tags map[string]string, dockInfo *model.DockSpec, in string) ( AsynchronizedWorkflow, error)
RegisterAsynchronizedWorkflow
type DeleteSnapshotExecutor ¶
type DeleteSnapshotExecutor struct { client.Client VolumeId string Request *pb.DeleteVolumeSnapshotOpts DockInfo *model.DockSpec }
func (*DeleteSnapshotExecutor) Asynchronized ¶
func (dse *DeleteSnapshotExecutor) Asynchronized() error
func (*DeleteSnapshotExecutor) Init ¶
func (dse *DeleteSnapshotExecutor) Init(in string) (err error)
type IntervalSnapshotExecutor ¶
type IntervalSnapshotExecutor struct { client.Client Request *pb.CreateVolumeSnapshotOpts DockInfo *model.DockSpec Interval string TotalNum int }
func (*IntervalSnapshotExecutor) Asynchronized ¶
func (ise *IntervalSnapshotExecutor) Asynchronized() error
func (*IntervalSnapshotExecutor) Init ¶
func (ise *IntervalSnapshotExecutor) Init(in string) (err error)
type SynchronizedExecutor ¶
SynchronizedExecutor
type SynchronizedWorkflow ¶
type SynchronizedWorkflow map[string]SynchronizedExecutor
SynchronizedWorkflow
func RegisterSynchronizedWorkflow ¶
func RegisterSynchronizedWorkflow(req interface{}, tags map[string]interface{}) (SynchronizedWorkflow, error)
RegisterSynchronizedWorkflow
Click to show internal directories.
Click to hide internal directories.