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) AddUser(user *core.User, prvKey string) (*core.User, error)
- func (client *ColoniesClient) ApproveExecutor(colonyName string, executorName string, prvKey string) error
- func (client *ColoniesClient) Assign(colonyName string, timeout int, availableCPU string, availableMem string, ...) (*core.Process, error)
- func (client *ColoniesClient) AssignWithContext(colonyName string, timeout int, ctx context.Context, availableCPU string, ...) (*core.Process, error)
- func (client *ColoniesClient) ChangeColonyID(colonyName, colonyID string, prvKey string) error
- func (client *ColoniesClient) ChangeExecutorID(colonyName, executorID string, prvKey string) error
- func (client *ColoniesClient) ChangeServerID(serverID string, prvKey string) error
- func (client *ColoniesClient) ChangeUserID(colonyName, userID string, prvKey string) 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(colonyName string, prvKey string) (*core.Statistics, error)
- func (client *ColoniesClient) CreateSnapshot(colonyName string, label string, name string, prvKey string) (*core.Snapshot, 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) GetColonyByName(colonyName string, prvKey string) (*core.Colony, error)
- func (client *ColoniesClient) GetCron(cronID string, prvKey string) (*core.Cron, error)
- func (client *ColoniesClient) GetCrons(colonyName string, count int, prvKey string) ([]*core.Cron, error)
- func (client *ColoniesClient) GetExecutor(colonyName string, executorName string, prvKey string) (*core.Executor, error)
- func (client *ColoniesClient) GetExecutors(colonyName string, prvKey string) ([]*core.Executor, error)
- func (client *ColoniesClient) GetFailedProcessGraphs(colonyName string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetFailedProcesses(colonyName string, executorType string, label string, initiator string, ...) ([]*core.Process, error)
- func (client *ColoniesClient) GetFileByID(colonyName string, fileID string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetFileByName(colonyName string, label string, name string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetFileData(colonyName string, label string, prvKey string) ([]*core.FileData, error)
- func (client *ColoniesClient) GetFileLabels(colonyName string, prvKey string) ([]*core.Label, error)
- func (client *ColoniesClient) GetFileLabelsByName(colonyName string, name string, exact bool, prvKey string) ([]*core.Label, error)
- func (client *ColoniesClient) GetFunctionsByColony(colonyName string, prvKey string) ([]*core.Function, error)
- func (client *ColoniesClient) GetFunctionsByExecutor(colonyName string, executorName string, prvKey string) ([]*core.Function, error)
- func (client *ColoniesClient) GetGenerator(generatorID string, prvKey string) (*core.Generator, error)
- func (client *ColoniesClient) GetGenerators(colonyName string, count int, prvKey string) ([]*core.Generator, error)
- func (client *ColoniesClient) GetLatestFileByName(colonyName string, label string, name string, prvKey string) ([]*core.File, error)
- func (client *ColoniesClient) GetLogsByExecutor(colonyName, executorName string, count int, prvKey string) ([]*core.Log, error)
- func (client *ColoniesClient) GetLogsByExecutorSince(colonyName, executorName string, count int, since int64, prvKey string) ([]*core.Log, error)
- func (client *ColoniesClient) GetLogsByProcess(colonyName string, processID string, count int, prvKey string) ([]*core.Log, error)
- func (client *ColoniesClient) GetLogsByProcessSince(colonyName string, 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, colonyName string, seconds int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetProcessHistForExecutor(state int, colonyName string, executorID string, seconds int, prvKey string) ([]*core.Process, error)
- func (client *ColoniesClient) GetRunningProcessGraphs(colonyName string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetRunningProcesses(colonyName string, executorType string, label string, initiator string, ...) ([]*core.Process, error)
- func (client *ColoniesClient) GetSnapshotByID(colonyName string, snapshotID string, prvKey string) (*core.Snapshot, error)
- func (client *ColoniesClient) GetSnapshotByName(colonyName string, name string, prvKey string) (*core.Snapshot, error)
- func (client *ColoniesClient) GetSnapshotsByColonyName(colonyName string, prvKey string) ([]*core.Snapshot, error)
- func (client *ColoniesClient) GetSuccessfulProcessGraphs(colonyName string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetSuccessfulProcesses(colonyName string, executorType string, label string, initiator string, ...) ([]*core.Process, error)
- func (client *ColoniesClient) GetUser(colonyName string, username string, prvKey string) (*core.User, error)
- func (client *ColoniesClient) GetUsers(colonyName string, prvKey string) ([]*core.User, error)
- func (client *ColoniesClient) GetWaitingProcessGraphs(colonyName string, count int, prvKey string) ([]*core.ProcessGraph, error)
- func (client *ColoniesClient) GetWaitingProcesses(colonyName string, executorType string, label string, initiator string, ...) ([]*core.Process, error)
- func (client *ColoniesClient) PackGenerator(generatorID string, arg string, prvKey string) error
- func (client *ColoniesClient) RejectExecutor(colonyName string, executorID string, prvKey string) error
- func (client *ColoniesClient) RemoveAllProcessGraphs(colonyName string, prvKey string) error
- func (client *ColoniesClient) RemoveAllProcessGraphsWithState(colonyName string, state int, prvKey string) error
- func (client *ColoniesClient) RemoveAllProcesses(colonyName string, prvKey string) error
- func (client *ColoniesClient) RemoveAllProcessesWithState(colonyName string, state int, prvKey string) error
- func (client *ColoniesClient) RemoveAllSnapshots(colonyName string, prvKey string) error
- func (client *ColoniesClient) RemoveColony(colonyName string, prvKey string) error
- func (client *ColoniesClient) RemoveCron(cronID string, prvKey string) error
- func (client *ColoniesClient) RemoveExecutor(colonyName string, executorName string, prvKey string) error
- func (client *ColoniesClient) RemoveFileByID(colonyName string, fileID string, prvKey string) error
- func (client *ColoniesClient) RemoveFileByName(colonyName string, label string, name string, prvKey string) error
- func (client *ColoniesClient) RemoveFunction(functionID string, prvKey string) error
- func (client *ColoniesClient) RemoveGenerator(generatorID string, prvKey string) error
- func (client *ColoniesClient) RemoveProcess(processID string, prvKey string) error
- func (client *ColoniesClient) RemoveProcessGraph(processGraphID string, prvKey string) error
- func (client *ColoniesClient) RemoveSnapshotByID(colonyName string, snapshotID string, prvKey string) error
- func (client *ColoniesClient) RemoveSnapshotByName(colonyName string, name string, prvKey string) error
- func (client *ColoniesClient) RemoveUser(colonyName string, username string, prvKey string) error
- func (client *ColoniesClient) ReportAllocation(colonyName string, executorName string, alloc core.Allocations, prvKey string) error
- func (client *ColoniesClient) ResolveGenerator(colonyName string, generatorName string, prvKey string) (*core.Generator, error)
- func (client *ColoniesClient) RunCron(cronID string, prvKey string) (*core.Cron, error)
- func (client *ColoniesClient) SearchLogs(colonyName, text string, days int, count int, prvKey string) ([]*core.Log, 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(colonyName string, processID string, executorType string, state int, ...) (*ProcessSubscription, error)
- func (client *ColoniesClient) SubscribeProcesses(colonyName string, 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(colonyName string, executorName string, prvKey string) error
func (*ColoniesClient) AssignWithContext ¶ added in v1.1.1
func (*ColoniesClient) ChangeColonyID ¶ added in v1.7.7
func (client *ColoniesClient) ChangeColonyID(colonyName, colonyID string, prvKey string) error
func (*ColoniesClient) ChangeExecutorID ¶ added in v1.7.7
func (client *ColoniesClient) ChangeExecutorID(colonyName, executorID string, prvKey string) error
func (*ColoniesClient) ChangeServerID ¶ added in v1.7.7
func (client *ColoniesClient) ChangeServerID(serverID string, prvKey string) error
func (*ColoniesClient) ChangeUserID ¶ added in v1.7.7
func (client *ColoniesClient) ChangeUserID(colonyName, userID string, prvKey string) error
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(colonyName string, prvKey string) (*core.Statistics, error)
func (*ColoniesClient) CreateSnapshot ¶ added in v1.5.0
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) GetColonyByName ¶ added in v1.7.0
func (*ColoniesClient) GetExecutor ¶ added in v1.0.1
func (*ColoniesClient) GetExecutors ¶ added in v1.0.1
func (*ColoniesClient) GetFailedProcessGraphs ¶
func (client *ColoniesClient) GetFailedProcessGraphs(colonyName 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) GetFileData ¶ added in v1.7.4
func (*ColoniesClient) GetFileLabels ¶ added in v1.5.0
func (*ColoniesClient) GetFileLabelsByName ¶ added in v1.6.0
func (*ColoniesClient) GetFunctionsByColony ¶ added in v1.7.7
func (*ColoniesClient) GetFunctionsByExecutor ¶ added in v1.7.7
func (*ColoniesClient) GetGenerator ¶
func (*ColoniesClient) GetGenerators ¶
func (*ColoniesClient) GetLatestFileByName ¶ added in v1.5.0
func (*ColoniesClient) GetLogsByExecutor ¶ added in v1.7.7
func (*ColoniesClient) GetLogsByExecutorSince ¶ added in v1.7.7
func (*ColoniesClient) GetLogsByProcess ¶ added in v1.7.7
func (*ColoniesClient) GetLogsByProcessSince ¶ added in v1.7.7
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(colonyName 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) GetSnapshotsByColonyName ¶ added in v1.7.0
func (*ColoniesClient) GetSuccessfulProcessGraphs ¶
func (client *ColoniesClient) GetSuccessfulProcessGraphs(colonyName string, count int, prvKey string) ([]*core.ProcessGraph, error)
func (*ColoniesClient) GetSuccessfulProcesses ¶
func (*ColoniesClient) GetWaitingProcessGraphs ¶
func (client *ColoniesClient) GetWaitingProcessGraphs(colonyName 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(colonyName string, executorID string, prvKey string) error
func (*ColoniesClient) RemoveAllProcessGraphs ¶ added in v1.7.0
func (client *ColoniesClient) RemoveAllProcessGraphs(colonyName string, prvKey string) error
func (*ColoniesClient) RemoveAllProcessGraphsWithState ¶ added in v1.7.0
func (client *ColoniesClient) RemoveAllProcessGraphsWithState(colonyName string, state int, prvKey string) error
func (*ColoniesClient) RemoveAllProcesses ¶ added in v1.7.0
func (client *ColoniesClient) RemoveAllProcesses(colonyName string, prvKey string) error
func (*ColoniesClient) RemoveAllProcessesWithState ¶ added in v1.7.0
func (client *ColoniesClient) RemoveAllProcessesWithState(colonyName string, state int, prvKey string) error
func (*ColoniesClient) RemoveAllSnapshots ¶ added in v1.7.7
func (client *ColoniesClient) RemoveAllSnapshots(colonyName string, prvKey string) error
func (*ColoniesClient) RemoveColony ¶ added in v1.7.0
func (client *ColoniesClient) RemoveColony(colonyName string, prvKey string) error
func (*ColoniesClient) RemoveCron ¶ added in v1.7.0
func (client *ColoniesClient) RemoveCron(cronID string, prvKey string) error
func (*ColoniesClient) RemoveExecutor ¶ added in v1.7.0
func (client *ColoniesClient) RemoveExecutor(colonyName string, executorName string, prvKey string) error
func (*ColoniesClient) RemoveFileByID ¶ added in v1.5.0
func (client *ColoniesClient) RemoveFileByID(colonyName string, fileID string, prvKey string) error
func (*ColoniesClient) RemoveFileByName ¶ added in v1.5.0
func (*ColoniesClient) RemoveFunction ¶ added in v1.7.0
func (client *ColoniesClient) RemoveFunction(functionID string, prvKey string) error
func (*ColoniesClient) RemoveGenerator ¶ added in v1.7.0
func (client *ColoniesClient) RemoveGenerator(generatorID string, prvKey string) error
func (*ColoniesClient) RemoveProcess ¶ added in v1.7.0
func (client *ColoniesClient) RemoveProcess(processID string, prvKey string) error
func (*ColoniesClient) RemoveProcessGraph ¶ added in v1.7.0
func (client *ColoniesClient) RemoveProcessGraph(processGraphID string, prvKey string) error
func (*ColoniesClient) RemoveSnapshotByID ¶ added in v1.7.0
func (client *ColoniesClient) RemoveSnapshotByID(colonyName string, snapshotID string, prvKey string) error
func (*ColoniesClient) RemoveSnapshotByName ¶ added in v1.7.0
func (client *ColoniesClient) RemoveSnapshotByName(colonyName string, name string, prvKey string) error
func (*ColoniesClient) RemoveUser ¶ added in v1.7.0
func (client *ColoniesClient) RemoveUser(colonyName string, username string, prvKey string) error
func (*ColoniesClient) ReportAllocation ¶ added in v1.7.8
func (client *ColoniesClient) ReportAllocation(colonyName string, executorName string, alloc core.Allocations, prvKey string) error
func (*ColoniesClient) ResolveGenerator ¶
func (*ColoniesClient) SearchLogs ¶ added in v1.7.7
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(colonyName string, processID string, executorType string, state int, timeout int, prvKey string) (*ProcessSubscription, error)
func (*ColoniesClient) SubscribeProcesses ¶
func (client *ColoniesClient) SubscribeProcesses(colonyName string, 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.