Documentation
¶
Index ¶
- type Controller
- type Handlers
- func (h *Handlers) HandleAddChild(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleGetProcessGraph(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleGetProcessGraphs(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleRemoveAllProcessGraphs(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleRemoveProcessGraph(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleSubmitWorkflow(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) RegisterHandlers(handlerRegistry *registry.HandlerRegistry) error
- type Server
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
SubmitWorkflowSpec(workflowSpec *core.WorkflowSpec, initiatorID string) (*core.ProcessGraph, error)
GetProcessGraphByID(processGraphID string) (*core.ProcessGraph, error)
FindWaitingProcessGraphs(colonyName string, count int) ([]*core.ProcessGraph, error)
FindRunningProcessGraphs(colonyName string, count int) ([]*core.ProcessGraph, error)
FindSuccessfulProcessGraphs(colonyName string, count int) ([]*core.ProcessGraph, error)
FindFailedProcessGraphs(colonyName string, count int) ([]*core.ProcessGraph, error)
RemoveProcessGraph(processGraphID string) error
RemoveAllProcessGraphs(colonyName string, state int) error
AddChild(processGraphID string, parentProcessID string, childProcessID string, process *core.Process, initiatorID string, insert bool) (*core.Process, error)
}
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) HandleAddChild ¶
func (*Handlers) HandleGetProcessGraph ¶
func (*Handlers) HandleGetProcessGraphs ¶
func (*Handlers) HandleRemoveAllProcessGraphs ¶
func (*Handlers) HandleRemoveProcessGraph ¶
func (*Handlers) HandleSubmitWorkflow ¶
func (*Handlers) RegisterHandlers ¶
func (h *Handlers) RegisterHandlers(handlerRegistry *registry.HandlerRegistry) error
RegisterHandlers implements the HandlerRegistrar interface
Click to show internal directories.
Click to hide internal directories.