workflows

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 7 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"
)

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) AddWorkflowCondition

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) GetEvent

func (c *Client) GetEvent(eventId string) (*events.EventResponse, 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

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

func (*Client) RemoveWorkflowCondition

func (c *Client) RemoveWorkflowCondition(workflowId, conditionId string) (*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"`
}

Requests

type UpdateWorkflowResponse

type UpdateWorkflowResponse struct {
	HttpMetadata common.HttpMetadata
	Name         string `json:"name,omitempty"`
	Active       bool   `json:"active,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