Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // trigger is used to specify what this replication is triggered by StartReplication(policy *model.Policy, resource *model.Resource, trigger model.TriggerType) (int64, error) StopReplication(int64) error ListExecutions(...*models.ExecutionQuery) (int64, []*models.Execution, error) GetExecution(int64) (*models.Execution, error) ListTasks(...*models.TaskQuery) (int64, []*models.Task, error) GetTask(int64) (*models.Task, error) UpdateTaskStatus(id int64, status string, statusCondition ...string) error GetTaskLog(int64) ([]byte, error) }
Controller handles the replication-related operations: start, stop, query, etc.
func NewController ¶
func NewController(js job.Client) Controller
NewController returns a controller implementation
Click to show internal directories.
Click to hide internal directories.