workflows

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (c *Client) AddWorkflowAction(
	workflowId string,
	request actions.ActionsRequest,
) (*common.IdResponse, error)

func (*Client) AddWorkflowActionWithContext

func (c *Client) AddWorkflowActionWithContext(
	ctx context.Context,
	workflowId string,
	request actions.ActionsRequest,
) (*common.IdResponse, error)

func (*Client) AddWorkflowCondition

func (c *Client) AddWorkflowCondition(
	workflowId string,
	request conditions.ConditionsRequest,
) (*common.IdResponse, error)

func (*Client) AddWorkflowConditionWithContext

func (c *Client) AddWorkflowConditionWithContext(
	ctx context.Context,
	workflowId string,
	request conditions.ConditionsRequest,
) (*common.IdResponse, error)

func (*Client) CreateWorkflow

func (c *Client) CreateWorkflow(request CreateWorkflowRequest) (*common.IdResponse, error)

func (*Client) CreateWorkflowWithContext

func (c *Client) CreateWorkflowWithContext(
	ctx context.Context,
	request CreateWorkflowRequest,
) (*common.IdResponse, error)

func (*Client) GetActionInvocations

func (c *Client) GetActionInvocations(eventId, actionId string) (*actions.ActionInvocationsResponse, error)

func (*Client) GetActionInvocationsWithContext

func (c *Client) GetActionInvocationsWithContext(
	ctx context.Context,
	eventId string,
	actionId string,
) (*actions.ActionInvocationsResponse, error)

func (*Client) GetEvent

func (c *Client) GetEvent(eventId string) (*events.EventResponse, error)

func (*Client) GetEventTypes

func (c *Client) GetEventTypes() (*events.EventTypesResponse, error)

func (*Client) GetEventTypesWithContext

func (c *Client) GetEventTypesWithContext(ctx context.Context) (*events.EventTypesResponse, error)

func (*Client) GetEventWithContext

func (c *Client) GetEventWithContext(
	ctx context.Context,
	eventId string,
) (*events.EventResponse, error)

func (*Client) GetSubjectEvents

func (c *Client) GetSubjectEvents(subjectId string) (*events.SubjectEventsResponse, error)

func (*Client) GetSubjectEventsWithContext

func (c *Client) GetSubjectEventsWithContext(
	ctx context.Context,
	subjectId string,
) (*events.SubjectEventsResponse, error)

func (*Client) GetWorkflow

func (c *Client) GetWorkflow(workflowId string) (*GetWorkflowResponse, error)

func (*Client) GetWorkflowWithContext

func (c *Client) GetWorkflowWithContext(
	ctx context.Context,
	workflowId string,
) (*GetWorkflowResponse, error)

func (*Client) GetWorkflows

func (c *Client) GetWorkflows() (*GetWorkflowsResponse, error)

func (*Client) GetWorkflowsWithContext

func (c *Client) GetWorkflowsWithContext(
	ctx context.Context,
) (*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) ReflowByEventAndWorkflowWithContext

func (c *Client) ReflowByEventAndWorkflowWithContext(
	ctx context.Context,
	eventId string,
	workflowId string,
) (*common.MetadataResponse, error)

func (*Client) ReflowByEventWithContext

func (c *Client) ReflowByEventWithContext(
	ctx context.Context,
	eventId 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) ReflowBySubjectAndWorkflowWithContext

func (c *Client) ReflowBySubjectAndWorkflowWithContext(
	ctx context.Context,
	subjectId string,
	workflowId string,
) (*common.MetadataResponse, error)

func (*Client) ReflowBySubjectWithContext

func (c *Client) ReflowBySubjectWithContext(
	ctx context.Context,
	subjectId string,
) (*common.MetadataResponse, error)

func (*Client) ReflowWithContext

func (c *Client) ReflowWithContext(
	ctx context.Context,
	request reflows.ReflowRequest,
) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflow

func (c *Client) RemoveWorkflow(workflowId string) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflowAction

func (c *Client) RemoveWorkflowAction(workflowId, actionId string) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflowActionWithContext

func (c *Client) RemoveWorkflowActionWithContext(
	ctx context.Context,
	workflowId string,
	actionId string,
) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflowCondition

func (c *Client) RemoveWorkflowCondition(workflowId, conditionId string) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflowConditionWithContext

func (c *Client) RemoveWorkflowConditionWithContext(
	ctx context.Context,
	workflowId string,
	conditionId string,
) (*common.MetadataResponse, error)

func (*Client) RemoveWorkflowWithContext

func (c *Client) RemoveWorkflowWithContext(
	ctx context.Context,
	workflowId string,
) (*common.MetadataResponse, error)

func (*Client) TestWorkflow

func (c *Client) TestWorkflow(workflowId string, request events.EventTypesRequest) (*common.MetadataResponse, error)

func (*Client) TestWorkflowWithContext

func (c *Client) TestWorkflowWithContext(
	ctx context.Context,
	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 string,
	actionId string,
	request actions.ActionsRequest,
) (*common.MetadataResponse, error)

func (*Client) UpdateWorkflowActionWithContext

func (c *Client) UpdateWorkflowActionWithContext(
	ctx context.Context,
	workflowId string,
	actionId string,
	request actions.ActionsRequest,
) (*common.MetadataResponse, error)

func (*Client) UpdateWorkflowCondition

func (c *Client) UpdateWorkflowCondition(
	workflowId string,
	conditionId string,
	request conditions.ConditionsRequest,
) (*common.MetadataResponse, error)

func (*Client) UpdateWorkflowConditionWithContext

func (c *Client) UpdateWorkflowConditionWithContext(
	ctx context.Context,
	workflowId string,
	conditionId string,
	request conditions.ConditionsRequest,
) (*common.MetadataResponse, error)

func (*Client) UpdateWorkflowWithContext

func (c *Client) UpdateWorkflowWithContext(
	ctx context.Context,
	workflowId string,
	request UpdateWorkflowRequest,
) (*UpdateWorkflowResponse, 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 TestWorkflowRequest added in v2.3.0

type TestWorkflowRequest struct {
	EventTypes map[string][]string `json:"event_types,omitempty"`
}

Requests

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

type Workflow

type Workflow struct {
	Id     string                 `json:"id,omitempty"`
	Name   string                 `json:"name,omitempty"`
	Active bool                   `json:"active,omitempty"`
	Links  map[string]common.Link `json:"_links,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL