Documentation ¶
Overview ¶
Copyright 2017 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2017 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type ConductorHttpClient
- func (c *ConductorHttpClient) AckTask(taskType string, workerid string) (string, error)
- func (c *ConductorHttpClient) CreateWorkflowDef(workflowDefBody string) (string, error)
- func (c *ConductorHttpClient) GetAllTaskDefs() (string, error)
- func (c *ConductorHttpClient) GetAllTasksInQueue() (string, error)
- func (c *ConductorHttpClient) GetAllWorkflowDefs() (string, error)
- func (c *ConductorHttpClient) GetRunningWorkflows(workflowName string, version int, startTime float64, endTime float64) (string, error)
- func (c *ConductorHttpClient) GetTask(taskId string) (string, error)
- func (c *ConductorHttpClient) GetTaskDef(taskDefName string) (string, error)
- func (c *ConductorHttpClient) GetTaskQueueSizes(taskNames string) (string, error)
- func (c *ConductorHttpClient) GetWorkflow(workflowId string, includeTasks bool) (string, error)
- func (c *ConductorHttpClient) GetWorkflowDef(workflowName string, version int) (string, error)
- func (c *ConductorHttpClient) PauseWorkflow(workflowId string) (string, error)
- func (c *ConductorHttpClient) PollForTask(taskType string, workerid string) (string, error)
- func (c *ConductorHttpClient) RegisterTaskDefs(taskDefsMeta string) (string, error)
- func (c *ConductorHttpClient) RemoveTaskFromQueue(taskType string, taskId string) (string, error)
- func (c *ConductorHttpClient) RerunWorkflow(workflowId string, rerunWorkflowRequest string) (string, error)
- func (c *ConductorHttpClient) RestartWorkflow(workflowId string) (string, error)
- func (c *ConductorHttpClient) ResumeWorkflow(workflowId string) (string, error)
- func (c *ConductorHttpClient) SkipTaskFromWorkflow(workflowId string, taskReferenceName string, skipTaskRequestBody string) (string, error)
- func (c *ConductorHttpClient) StartWorkflow(workflowName string, version int, correlationId string, inputJson string) (string, error)
- func (c *ConductorHttpClient) TerminateWorkflow(workflowId string, reason string) (string, error)
- func (c *ConductorHttpClient) UnRegisterTaskDef(taskDefName string) (string, error)
- func (c *ConductorHttpClient) UnRegisterWorkflowDef(workflowDefName string, version int) (string, error)
- func (c *ConductorHttpClient) UpdateTask(taskBody string) (string, error)
- func (c *ConductorHttpClient) UpdateTaskDef(taskDefMeta string) (string, error)
- func (c *ConductorHttpClient) UpdateWorkflowDefs(workflowDefsBody string) (string, error)
- type ConductorWorker
- func (c *ConductorWorker) Execute(taskData string, executeFunction func(t *task.Task) (*task.TaskResult, error))
- func (c *ConductorWorker) PollAndExecute(taskType string, executeFunction func(t *task.Task) (*task.TaskResult, error))
- func (c *ConductorWorker) Start(taskType string, executeFunction func(t *task.Task) (*task.TaskResult, error), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConductorHttpClient ¶
type ConductorHttpClient struct {
// contains filtered or unexported fields
}
func NewConductorHttpClient ¶
func NewConductorHttpClient(baseUrl string) *ConductorHttpClient
func (*ConductorHttpClient) AckTask ¶
func (c *ConductorHttpClient) AckTask(taskType string, workerid string) (string, error)
func (*ConductorHttpClient) CreateWorkflowDef ¶
func (c *ConductorHttpClient) CreateWorkflowDef(workflowDefBody string) (string, error)
func (*ConductorHttpClient) GetAllTaskDefs ¶
func (c *ConductorHttpClient) GetAllTaskDefs() (string, error)
func (*ConductorHttpClient) GetAllTasksInQueue ¶
func (c *ConductorHttpClient) GetAllTasksInQueue() (string, error)
func (*ConductorHttpClient) GetAllWorkflowDefs ¶
func (c *ConductorHttpClient) GetAllWorkflowDefs() (string, error)
func (*ConductorHttpClient) GetRunningWorkflows ¶
func (*ConductorHttpClient) GetTask ¶
func (c *ConductorHttpClient) GetTask(taskId string) (string, error)
func (*ConductorHttpClient) GetTaskDef ¶
func (c *ConductorHttpClient) GetTaskDef(taskDefName string) (string, error)
func (*ConductorHttpClient) GetTaskQueueSizes ¶
func (c *ConductorHttpClient) GetTaskQueueSizes(taskNames string) (string, error)
func (*ConductorHttpClient) GetWorkflow ¶
func (c *ConductorHttpClient) GetWorkflow(workflowId string, includeTasks bool) (string, error)
func (*ConductorHttpClient) GetWorkflowDef ¶
func (c *ConductorHttpClient) GetWorkflowDef(workflowName string, version int) (string, error)
func (*ConductorHttpClient) PauseWorkflow ¶
func (c *ConductorHttpClient) PauseWorkflow(workflowId string) (string, error)
func (*ConductorHttpClient) PollForTask ¶
func (c *ConductorHttpClient) PollForTask(taskType string, workerid string) (string, error)
func (*ConductorHttpClient) RegisterTaskDefs ¶
func (c *ConductorHttpClient) RegisterTaskDefs(taskDefsMeta string) (string, error)
func (*ConductorHttpClient) RemoveTaskFromQueue ¶
func (c *ConductorHttpClient) RemoveTaskFromQueue(taskType string, taskId string) (string, error)
func (*ConductorHttpClient) RerunWorkflow ¶
func (c *ConductorHttpClient) RerunWorkflow(workflowId string, rerunWorkflowRequest string) (string, error)
func (*ConductorHttpClient) RestartWorkflow ¶
func (c *ConductorHttpClient) RestartWorkflow(workflowId string) (string, error)
func (*ConductorHttpClient) ResumeWorkflow ¶
func (c *ConductorHttpClient) ResumeWorkflow(workflowId string) (string, error)
func (*ConductorHttpClient) SkipTaskFromWorkflow ¶
func (*ConductorHttpClient) StartWorkflow ¶
func (*ConductorHttpClient) TerminateWorkflow ¶
func (c *ConductorHttpClient) TerminateWorkflow(workflowId string, reason string) (string, error)
func (*ConductorHttpClient) UnRegisterTaskDef ¶
func (c *ConductorHttpClient) UnRegisterTaskDef(taskDefName string) (string, error)
func (*ConductorHttpClient) UnRegisterWorkflowDef ¶ added in v1.10.13
func (c *ConductorHttpClient) UnRegisterWorkflowDef(workflowDefName string, version int) (string, error)
func (*ConductorHttpClient) UpdateTask ¶
func (c *ConductorHttpClient) UpdateTask(taskBody string) (string, error)
func (*ConductorHttpClient) UpdateTaskDef ¶
func (c *ConductorHttpClient) UpdateTaskDef(taskDefMeta string) (string, error)
func (*ConductorHttpClient) UpdateWorkflowDefs ¶
func (c *ConductorHttpClient) UpdateWorkflowDefs(workflowDefsBody string) (string, error)
type ConductorWorker ¶
type ConductorWorker struct { ConductorHttpClient *ConductorHttpClient ThreadCount int PollingInterval int }
func NewConductorWorker ¶
func NewConductorWorker(baseUrl string, threadCount int, pollingInterval int) *ConductorWorker
func (*ConductorWorker) Execute ¶
func (c *ConductorWorker) Execute(taskData string, executeFunction func(t *task.Task) (*task.TaskResult, error))
func (*ConductorWorker) PollAndExecute ¶
func (c *ConductorWorker) PollAndExecute(taskType string, executeFunction func(t *task.Task) (*task.TaskResult, error))
func (*ConductorWorker) Start ¶
func (c *ConductorWorker) Start(taskType string, executeFunction func(t *task.Task) (*task.TaskResult, error), wait bool)