Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddWorkflowAction(workflowId string, request actions.ActionsRequest) (*common.IdResponse, error)
- func (c *Client) AddWorkflowCondition(workflowId string, request conditions.ConditionsRequest) (*common.IdResponse, error)
- func (c *Client) CreateWorkflow(request CreateWorkflowRequest) (*common.IdResponse, error)
- func (c *Client) GetActionInvocations(eventId, actionId string) (*actions.ActionInvocationsResponse, error)
- func (c *Client) GetEvent(eventId string) (*events.EventResponse, error)
- func (c *Client) GetEventTypes() (*events.EventTypesResponse, error)
- func (c *Client) GetSubjectEvents(subjectId string) (*events.SubjectEventsResponse, error)
- func (c *Client) GetWorkflow(workflowId string) (*GetWorkflowResponse, error)
- func (c *Client) GetWorkflows() (*GetWorkflowsResponse, error)
- func (c *Client) Reflow(request reflows.ReflowRequest) (*common.MetadataResponse, error)
- func (c *Client) ReflowByEvent(eventId string) (*common.MetadataResponse, error)
- func (c *Client) ReflowByEventAndWorkflow(eventId, workflowId string) (*common.MetadataResponse, error)
- func (c *Client) ReflowBySubject(subjectId string) (*common.MetadataResponse, error)
- func (c *Client) ReflowBySubjectAndWorkflow(subjectId, workflowId string) (*common.MetadataResponse, error)
- func (c *Client) RemoveWorkflow(workflowId string) (*common.MetadataResponse, error)
- func (c *Client) RemoveWorkflowAction(workflowId, actionId string) (*common.MetadataResponse, error)
- func (c *Client) RemoveWorkflowCondition(workflowId, conditionId string) (*common.MetadataResponse, error)
- func (c *Client) TestWorkflow(workflowId string, request events.EventTypesRequest) (*common.MetadataResponse, error)
- func (c *Client) UpdateWorkflow(workflowId string, request UpdateWorkflowRequest) (*UpdateWorkflowResponse, error)
- func (c *Client) UpdateWorkflowAction(workflowId, actionId string, request actions.ActionsRequest) (*common.MetadataResponse, error)
- func (c *Client) UpdateWorkflowCondition(workflowId, conditionId string, request conditions.ConditionsRequest) (*common.MetadataResponse, error)
- type CreateWorkflowRequest
- type GetWorkflowResponse
- type GetWorkflowsResponse
- type UpdateWorkflowRequest
- type UpdateWorkflowResponse
- type Workflow
Constants ¶
View Source
const ( WorkflowsPath = "workflows" ActionsPath = "actions" ConditionsPath = "conditions" EventTypesPath = "event-types" EventsPath = "events" SubjectPath = "subject" ReflowPath = "reflow" WorkflowPath = "workflow" TestPath = "test" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client
func (*Client) AddWorkflowAction ¶ added in v1.0.4
func (c *Client) AddWorkflowAction( workflowId string, request actions.ActionsRequest, ) (*common.IdResponse, error)
func (*Client) AddWorkflowCondition ¶ added in v1.0.4
func (c *Client) AddWorkflowCondition( workflowId string, request conditions.ConditionsRequest, ) (*common.IdResponse, error)
func (*Client) CreateWorkflow ¶
func (c *Client) CreateWorkflow(request CreateWorkflowRequest) (*common.IdResponse, error)
func (*Client) GetActionInvocations ¶
func (c *Client) GetActionInvocations(eventId, actionId string) (*actions.ActionInvocationsResponse, error)
func (*Client) GetEventTypes ¶
func (c *Client) GetEventTypes() (*events.EventTypesResponse, error)
func (*Client) GetSubjectEvents ¶
func (c *Client) GetSubjectEvents(subjectId string) (*events.SubjectEventsResponse, error)
func (*Client) GetWorkflow ¶
func (c *Client) GetWorkflow(workflowId string) (*GetWorkflowResponse, error)
func (*Client) GetWorkflows ¶
func (c *Client) GetWorkflows() (*GetWorkflowsResponse, error)
func (*Client) Reflow ¶
func (c *Client) Reflow(request reflows.ReflowRequest) (*common.MetadataResponse, error)
func (*Client) ReflowByEvent ¶
func (c *Client) ReflowByEvent(eventId string) (*common.MetadataResponse, error)
func (*Client) ReflowByEventAndWorkflow ¶
func (c *Client) ReflowByEventAndWorkflow(eventId, workflowId string) (*common.MetadataResponse, error)
func (*Client) ReflowBySubject ¶
func (c *Client) ReflowBySubject(subjectId string) (*common.MetadataResponse, error)
func (*Client) ReflowBySubjectAndWorkflow ¶
func (c *Client) ReflowBySubjectAndWorkflow(subjectId, workflowId string) (*common.MetadataResponse, error)
func (*Client) RemoveWorkflow ¶
func (c *Client) RemoveWorkflow(workflowId string) (*common.MetadataResponse, error)
func (*Client) RemoveWorkflowAction ¶ added in v1.0.4
func (c *Client) RemoveWorkflowAction(workflowId, actionId string) (*common.MetadataResponse, error)
func (*Client) RemoveWorkflowCondition ¶ added in v1.0.4
func (c *Client) RemoveWorkflowCondition(workflowId, conditionId string) (*common.MetadataResponse, error)
func (*Client) TestWorkflow ¶ added in v1.2.5
func (c *Client) TestWorkflow( workflowId string, request events.EventTypesRequest, ) (*common.MetadataResponse, error)
func (*Client) UpdateWorkflow ¶
func (c *Client) UpdateWorkflow(workflowId string, request UpdateWorkflowRequest) (*UpdateWorkflowResponse, error)
func (*Client) UpdateWorkflowAction ¶
func (c *Client) UpdateWorkflowAction( workflowId, actionId string, request actions.ActionsRequest, ) (*common.MetadataResponse, error)
func (*Client) UpdateWorkflowCondition ¶
func (c *Client) UpdateWorkflowCondition( workflowId, conditionId string, request conditions.ConditionsRequest, ) (*common.MetadataResponse, error)
type CreateWorkflowRequest ¶
type CreateWorkflowRequest struct { Name string `json:"name,omitempty"` Active bool `json:"active,omitempty"` Conditions []conditions.ConditionsRequest `json:"conditions,omitempty"` Actions []actions.ActionsRequest `json:"actions,omitempty"` }
Requests
type GetWorkflowResponse ¶
type GetWorkflowResponse struct { HttpMetadata common.HttpMetadata Workflow Conditions []conditions.ConditionsResponse `json:"conditions,omitempty"` Actions []actions.ActionsResponse `json:"actions,omitempty"` Links map[string]common.Link `json:"_links,omitempty"` }
Responses
type GetWorkflowsResponse ¶
type GetWorkflowsResponse struct { HttpMetadata common.HttpMetadata Workflows []Workflow `json:"data,omitempty"` }
Responses
type UpdateWorkflowRequest ¶
type UpdateWorkflowRequest struct { Name string `json:"name,omitempty"` Active bool `json:"active,omitempty"` Conditions []conditions.ConditionsRequest `json:"conditions,omitempty"` Actions []actions.ActionsRequest `json:"actions,omitempty"` }
Requests
type UpdateWorkflowResponse ¶
type UpdateWorkflowResponse struct { HttpMetadata common.HttpMetadata Name string `json:"name,omitempty"` Active bool `json:"active,omitempty"` Conditions []conditions.ConditionsResponse `json:"conditions,omitempty"` Actions []actions.ActionsResponse `json:"actions,omitempty"` }
Responses
Click to show internal directories.
Click to hide internal directories.