executor

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RETRY_INTERVAL = 5
	MAX_RETRY_TIME = 10
)

Variables

This section is empty.

Functions

func CheckSnapshotDeleted

func CheckSnapshotDeleted(volumeId string) bool

func ExecuteAsynchronizedWorkflow

func ExecuteAsynchronizedWorkflow(asynWorkflow AsynchronizedWorkflow) error

ExecuteAsynchronizedWorkflow

func ExecuteSynchronizedWorkflow

func ExecuteSynchronizedWorkflow(synWorkflow SynchronizedWorkflow) error

ExecuteSynchronizedWorkflow

func ParseInterval

func ParseInterval(interval string) (int, error)

Types

type AsynchronizedExecutor

type AsynchronizedExecutor interface {
	Init(in string) error
	Asynchronized() error
}

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

type SynchronizedExecutor interface {
	Init() error
	Synchronized() error
}

SynchronizedExecutor

type SynchronizedWorkflow

type SynchronizedWorkflow map[string]SynchronizedExecutor

SynchronizedWorkflow

func RegisterSynchronizedWorkflow

func RegisterSynchronizedWorkflow(req interface{}, tags map[string]interface{}) (SynchronizedWorkflow, error)

RegisterSynchronizedWorkflow

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL