Documentation ¶
Index ¶
- type ColoniesClient
- func (client *ColoniesClient) AddAttribute(attribute core.Attribute, prvKey string) (core.Attribute, error)
- func (client *ColoniesClient) AddChild(processGraphID string, parentProcessID string, childProcessID string, ...) (*core.Process, error)
- func (client *ColoniesClient) AddColony(colony *core.Colony, prvKey string) (*core.Colony, error)
- func (client *ColoniesClient) AddCron(cron *core.Cron, prvKey string) (*core.Cron, error)
- func (client *ColoniesClient) AddExecutor(executor *core.Executor, prvKey string) (*core.Executor, error)
- func (client *ColoniesClient) AddFile(file *core.File, prvKey string) (*core.File, error)
- func (client *ColoniesClient) AddFunction(function *core.Function, prvKey string) (*core.Function, error)
- func (client *ColoniesClient) AddGenerator(generator *core.Generator, prvKey string) (*core.Generator, error)
- func (client *ColoniesClient) AddLog(processID string, logmsg string, prvKey string) error
- func (client *ColoniesClient) ApproveExecutor(executorID string, prvKey string) error
- func (client *ColoniesClient) Assign(colonyID string, timeout int, prvKey string) (*core.Process, error)
- func (client *ColoniesClient) AssignWithContext(colonyID string, timeout int, ctx context.Context, prvKey string) (*core.Process, error)
- func (client *ColoniesClient) CheckHealth() error
- func (client *ColoniesClient) Close(processID string, prvKey string) error
- func (client *ColoniesClient) CloseWithOutput(processID string, output []interface{}, prvKey string) error
- func (client *ColoniesClient) ColonyStatistics(colonyID string, prvKey string) (*core.Statistics, error)
- func (client *ColoniesClient) CreateSnapshot(colonyID string, label string, name string, prvKey string) (*core.Snapshot, error)
- func (client *ColoniesClient) DeleteAllProcessGraphs(colonyID string, prvKey string) error
- func (client *ColoniesClient) DeleteAllProcessGraphsWithState(colonyID string, state int, prvKey string) error
- func (client *ColoniesClient) DeleteAllProcesses(colonyID string, prvKey string) error
- func (client *ColoniesClient) DeleteAllProcessesWithState(colonyID string, state int, prvKey string) error
- func (client *ColoniesClient) DeleteColony(colonyID string, prvKey string) error
- func (client *ColoniesClient) DeleteCron(cronID string, prvKey string) error
- func (client *ColoniesClient) DeleteExecutor(executorID string, prvKey string) error
- func (client *ColoniesClient) DeleteFunction(functionID string, prvKey string) error
- func (client *ColoniesClient) DeleteGenerator(generatorID string, prvKey string) error
- func (client *ColoniesClient) DeleteProcess(processID string, prvKey string) error
- func (client *ColoniesClient) DeleteProcessGraph(processGraphID string, prvKey string) error
- func (client *ColoniesClient) DeleteSnapshotByID(colonyID string, snapshotID string, prvKey string) error
- func (client *ColoniesClient) DeleteSnapshotByName(colonyID string, name string, prvKey string) error
- func (client *ColoniesClient) Fail(processID string, errs []string, prvKey string) error
- func (client *ColoniesClient) GetAttribute(attributeID string, prvKey string) (core.Attribute, error)
- func (client *ColoniesClient) GetClusterInfo(prvKey string) (*cluster.Config, error)
- func (client *ColoniesClient) GetColonies(prvKey string) ([]*core.Colony, error)
- func (client *ColoniesClient) GetColonyByID(colonyID string, prvKey string) (*core.Colony, error)
- func (client *ColoniesClient) GetCron(cronID string, prvKey string) (*core.Cron, error)
- func (client *ColoniesClient) GetCrons(colonyID string, count int, prvKey string) ([]*core.Cron, error)
- func (client *ColoniesClient) GetExecutor(executorID string, prvKey string) (*core.Executor, error)
- func (client *ColoniesClient) GetExecutors(colonyID string, prvKey string) ([]*core.Executor, error)
- func (client *ColoniesClient) GetFailedProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetFailedProcesses(colonyID string, executorType string, count int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetFileByID(colonyID string, fileID string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetFileByName(colonyID string, label string, name string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetFileLabels(colonyID string, prvKey string) ([]*core.Label, error)
- func (client *ColoniesClient) GetFilenames(colonyID string, label string, prvKey string) ([]string, error)
- func (client *ColoniesClient) GetFunctionsByColonyID(colonyID string, prvKey string) ([]*core.Function, error)
- func (client *ColoniesClient) GetFunctionsByExecutorID(executorID string, prvKey string) ([]*core.Function, error)
- func (client *ColoniesClient) GetGenerator(generatorID string, prvKey string) (*core.Generator, error)
- func (client *ColoniesClient) GetGenerators(colonyID string, count int, prvKey string) ([]*core.Generator, error)
- func (client *ColoniesClient) GetLatestFileByName(colonyID string, label string, name string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetLogsByExecutorID(executorID string, count int, prvKey string) ([]core.Log, error)
- func (client *ColoniesClient) GetLogsByExecutorIDSince(executorID string, count int, since int64, prvKey string) ([]core.Log, error)
- func (client *ColoniesClient) GetLogsByProcessID(processID string, count int, prvKey string) ([]core.Log, error)
- func (client *ColoniesClient) GetLogsByProcessIDSince(processID string, count int, since int64, prvKey string) ([]core.Log, error)
- func (client *ColoniesClient) GetProcess(processID string, prvKey string) (*core.Process, error)
- func (client *ColoniesClient) GetProcessGraph(processGraphID string, prvKey string) (*core.ProcessGraph, error)
- func (client *ColoniesClient) GetProcessHistForColony(state int, colonyID string, seconds int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetProcessHistForExecutor(state int, colonyID string, executorID string, seconds int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetRunningProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetRunningProcesses(colonyID string, executorType string, count int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetSnapshotByID(colonyID string, snapshotID string, prvKey string) (*core.Snapshot, error)
- func (client *ColoniesClient) GetSnapshotByName(colonyID string, name string, prvKey string) (*core.Snapshot, error)
- func (client *ColoniesClient) GetSnapshotsByColonyID(colonyID string, prvKey string) ([]*core.Snapshot, error)
- func (client *ColoniesClient) GetSuccessfulProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetSuccessfulProcesses(colonyID string, executorType string, count int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetWaitingProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetWaitingProcesses(colonyID string, executorType string, count int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) PackGenerator(generatorID string, arg string, prvKey string) error
- func (client *ColoniesClient) RejectExecutor(executorID string, prvKey string) error
- func (client *ColoniesClient) RemoveFileByID(colonyID string, fileID string, prvKey string) error
- func (client *ColoniesClient) RemoveFileByName(colonyID string, label string, name string, prvKey string) error
- func (client *ColoniesClient) RenameColony(colonyID string, name string, prvKey string) error
- func (client *ColoniesClient) ResetDatabase(prvKey string) error
- func (client *ColoniesClient) ResolveGenerator(generatorName string, prvKey string) (*core.Generator, error)
- func (client *ColoniesClient) RunCron(cronID string, prvKey string) (*core.Cron, error)
- func (client *ColoniesClient) SendRawMessage(jsonString string, insecure bool) (string, error)
- func (client *ColoniesClient) SetOutput(processID string, output []interface{}, prvKey string) error
- func (client *ColoniesClient) Statistics(prvKey string) (*core.Statistics, error)
- func (client *ColoniesClient) Submit(funcSpec *core.FunctionSpec, prvKey string) (*core.Process, error)
- func (client *ColoniesClient) SubmitWorkflowSpec(workflowSpec *core.WorkflowSpec, prvKey string) (*core.ProcessGraph, error)
- func (client *ColoniesClient) SubscribeProcess(processID string, executorType string, state int, timeout int, prvKey string) (*ProcessSubscription, error)
- func (client *ColoniesClient) SubscribeProcesses(executorType string, state int, timeout int, prvKey string) (*ProcessSubscription, error)
- func (client *ColoniesClient) Version() (string, string, error)
- type ProcessSubscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColoniesClient ¶
type ColoniesClient struct {
// contains filtered or unexported fields
}
func CreateColoniesClient ¶
func CreateColoniesClient(host string, port int, insecure bool, skipTLSVerify bool) *ColoniesClient
func (*ColoniesClient) AddAttribute ¶
func (*ColoniesClient) AddExecutor ¶ added in v1.0.1
func (*ColoniesClient) AddFunction ¶ added in v1.0.1
func (*ColoniesClient) AddGenerator ¶
func (*ColoniesClient) AddLog ¶ added in v1.4.0
func (client *ColoniesClient) AddLog(processID string, logmsg string, prvKey string) error
func (*ColoniesClient) ApproveExecutor ¶ added in v1.0.1
func (client *ColoniesClient) ApproveExecutor(executorID string, prvKey string) error
func (*ColoniesClient) AssignWithContext ¶ added in v1.1.1
func (*ColoniesClient) CheckHealth ¶
func (client *ColoniesClient) CheckHealth() error
func (*ColoniesClient) Close ¶
func (client *ColoniesClient) Close(processID string, prvKey string) error
func (*ColoniesClient) CloseWithOutput ¶
func (client *ColoniesClient) CloseWithOutput(processID string, output []interface{}, prvKey string) error
func (*ColoniesClient) ColonyStatistics ¶
func (client *ColoniesClient) ColonyStatistics(colonyID string, prvKey string) (*core.Statistics, error)
func (*ColoniesClient) CreateSnapshot ¶ added in v1.5.0
func (*ColoniesClient) DeleteAllProcessGraphs ¶
func (client *ColoniesClient) DeleteAllProcessGraphs(colonyID string, prvKey string) error
func (*ColoniesClient) DeleteAllProcessGraphsWithState ¶ added in v1.1.0
func (client *ColoniesClient) DeleteAllProcessGraphsWithState(colonyID string, state int, prvKey string) error
func (*ColoniesClient) DeleteAllProcesses ¶
func (client *ColoniesClient) DeleteAllProcesses(colonyID string, prvKey string) error
func (*ColoniesClient) DeleteAllProcessesWithState ¶ added in v1.1.0
func (client *ColoniesClient) DeleteAllProcessesWithState(colonyID string, state int, prvKey string) error
func (*ColoniesClient) DeleteColony ¶
func (client *ColoniesClient) DeleteColony(colonyID string, prvKey string) error
func (*ColoniesClient) DeleteCron ¶
func (client *ColoniesClient) DeleteCron(cronID string, prvKey string) error
func (*ColoniesClient) DeleteExecutor ¶ added in v1.0.1
func (client *ColoniesClient) DeleteExecutor(executorID string, prvKey string) error
func (*ColoniesClient) DeleteFunction ¶ added in v1.0.1
func (client *ColoniesClient) DeleteFunction(functionID string, prvKey string) error
func (*ColoniesClient) DeleteGenerator ¶
func (client *ColoniesClient) DeleteGenerator(generatorID string, prvKey string) error
func (*ColoniesClient) DeleteProcess ¶
func (client *ColoniesClient) DeleteProcess(processID string, prvKey string) error
func (*ColoniesClient) DeleteProcessGraph ¶
func (client *ColoniesClient) DeleteProcessGraph(processGraphID string, prvKey string) error
func (*ColoniesClient) DeleteSnapshotByID ¶ added in v1.5.0
func (client *ColoniesClient) DeleteSnapshotByID(colonyID string, snapshotID string, prvKey string) error
func (*ColoniesClient) DeleteSnapshotByName ¶ added in v1.5.0
func (client *ColoniesClient) DeleteSnapshotByName(colonyID string, name string, prvKey string) error
func (*ColoniesClient) Fail ¶
func (client *ColoniesClient) Fail(processID string, errs []string, prvKey string) error
func (*ColoniesClient) GetAttribute ¶
func (*ColoniesClient) GetClusterInfo ¶
func (client *ColoniesClient) GetClusterInfo(prvKey string) (*cluster.Config, error)
func (*ColoniesClient) GetColonies ¶
func (client *ColoniesClient) GetColonies(prvKey string) ([]*core.Colony, error)
func (*ColoniesClient) GetColonyByID ¶
func (*ColoniesClient) GetExecutor ¶ added in v1.0.1
func (*ColoniesClient) GetExecutors ¶ added in v1.0.1
func (*ColoniesClient) GetFailedProcessGraphs ¶
func (client *ColoniesClient) GetFailedProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
func (*ColoniesClient) GetFailedProcesses ¶
func (*ColoniesClient) GetFileByID ¶ added in v1.5.0
func (*ColoniesClient) GetFileByName ¶ added in v1.5.0
func (*ColoniesClient) GetFileLabels ¶ added in v1.5.0
func (*ColoniesClient) GetFilenames ¶ added in v1.5.0
func (*ColoniesClient) GetFunctionsByColonyID ¶ added in v1.0.1
func (*ColoniesClient) GetFunctionsByExecutorID ¶ added in v1.0.1
func (*ColoniesClient) GetGenerator ¶
func (*ColoniesClient) GetGenerators ¶
func (*ColoniesClient) GetLatestFileByName ¶ added in v1.5.0
func (*ColoniesClient) GetLogsByExecutorID ¶ added in v1.4.0
func (*ColoniesClient) GetLogsByExecutorIDSince ¶ added in v1.4.0
func (*ColoniesClient) GetLogsByProcessID ¶ added in v1.4.0
func (*ColoniesClient) GetLogsByProcessIDSince ¶ added in v1.4.0
func (*ColoniesClient) GetProcess ¶
func (*ColoniesClient) GetProcessGraph ¶
func (client *ColoniesClient) GetProcessGraph(processGraphID string, prvKey string) (*core.ProcessGraph, error)
func (*ColoniesClient) GetProcessHistForColony ¶
func (*ColoniesClient) GetProcessHistForExecutor ¶ added in v1.0.1
func (*ColoniesClient) GetRunningProcessGraphs ¶
func (client *ColoniesClient) GetRunningProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
func (*ColoniesClient) GetRunningProcesses ¶
func (*ColoniesClient) GetSnapshotByID ¶ added in v1.5.0
func (*ColoniesClient) GetSnapshotByName ¶ added in v1.5.0
func (*ColoniesClient) GetSnapshotsByColonyID ¶ added in v1.5.0
func (*ColoniesClient) GetSuccessfulProcessGraphs ¶
func (client *ColoniesClient) GetSuccessfulProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
func (*ColoniesClient) GetSuccessfulProcesses ¶
func (*ColoniesClient) GetWaitingProcessGraphs ¶
func (client *ColoniesClient) GetWaitingProcessGraphs(colonyID string, count int, prvKey string) ([]*core.ProcessGraph, error)
func (*ColoniesClient) GetWaitingProcesses ¶
func (*ColoniesClient) PackGenerator ¶
func (client *ColoniesClient) PackGenerator(generatorID string, arg string, prvKey string) error
func (*ColoniesClient) RejectExecutor ¶ added in v1.0.1
func (client *ColoniesClient) RejectExecutor(executorID string, prvKey string) error
func (*ColoniesClient) RemoveFileByID ¶ added in v1.5.0
func (client *ColoniesClient) RemoveFileByID(colonyID string, fileID string, prvKey string) error
func (*ColoniesClient) RemoveFileByName ¶ added in v1.5.0
func (*ColoniesClient) RenameColony ¶ added in v1.1.0
func (client *ColoniesClient) RenameColony(colonyID string, name string, prvKey string) error
func (*ColoniesClient) ResetDatabase ¶
func (client *ColoniesClient) ResetDatabase(prvKey string) error
func (*ColoniesClient) ResolveGenerator ¶
func (*ColoniesClient) SendRawMessage ¶
func (client *ColoniesClient) SendRawMessage(jsonString string, insecure bool) (string, error)
func (*ColoniesClient) SetOutput ¶ added in v1.4.0
func (client *ColoniesClient) SetOutput(processID string, output []interface{}, prvKey string) error
func (*ColoniesClient) Statistics ¶
func (client *ColoniesClient) Statistics(prvKey string) (*core.Statistics, error)
func (*ColoniesClient) Submit ¶ added in v1.0.1
func (client *ColoniesClient) Submit(funcSpec *core.FunctionSpec, prvKey string) (*core.Process, error)
func (*ColoniesClient) SubmitWorkflowSpec ¶
func (client *ColoniesClient) SubmitWorkflowSpec(workflowSpec *core.WorkflowSpec, prvKey string) (*core.ProcessGraph, error)
func (*ColoniesClient) SubscribeProcess ¶
func (client *ColoniesClient) SubscribeProcess(processID string, executorType string, state int, timeout int, prvKey string) (*ProcessSubscription, error)
func (*ColoniesClient) SubscribeProcesses ¶
func (client *ColoniesClient) SubscribeProcesses(executorType string, state int, timeout int, prvKey string) (*ProcessSubscription, error)
type ProcessSubscription ¶
type ProcessSubscription struct { ProcessChan chan *core.Process ErrChan chan error // contains filtered or unexported fields }
func (*ProcessSubscription) Close ¶
func (subscription *ProcessSubscription) Close() error
Click to show internal directories.
Click to hide internal directories.