actions

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebhookActionRequest

func NewWebhookActionRequest() *webhookActionRequest

Types

type ActionInvocationsResponse

type ActionInvocationsResponse struct {
	HttpMetadata      common.HttpMetadata
	WorkflowId        string                     `json:"workflow_id,omitempty"`
	EventId           string                     `json:"event_id,omitempty"`
	WorkflowActionId  string                     `json:"workflow_action_id,omitempty"`
	ActionType        WorkflowActionType         `json:"action_type,omitempty"`
	Status            WorkflowActionStatus       `json:"status,omitempty"`
	ActionInvocations []WorkflowActionInvocation `json:"action_invocations,omitempty"`
}

Responses

type Actions

type Actions struct {
	*WebhookAction
}

type ActionsRequest

type ActionsRequest interface {
	GetType() WorkflowActionType
}

Requests

type ActionsResponse

type ActionsResponse struct {
	Id   string
	Type WorkflowActionType
	Actions
	Links map[string]common.Link `json:"_links,omitempty"`
}

Responses

type WebhookAction

type WebhookAction struct {
	Url       string            `json:"url,omitempty"`
	Headers   map[string]string `json:"headers,omitempty"`
	Signature *WebhookSignature `json:"signature,omitempty"`
}

type WebhookSignature

type WebhookSignature struct {
	Method string `json:"method,omitempty"`
	Key    string `json:"key,omitempty"`
}

type WorkflowActionInvocation

type WorkflowActionInvocation struct {
	InvocationId string                 `json:"invocation_id,omitempty"`
	Timestamp    *time.Time             `json:"timestamp,omitempty"`
	Retry        bool                   `json:"retry,omitempty"`
	Succeeded    bool                   `json:"succeeded,omitempty"`
	FinalAttempt bool                   `json:"final,omitempty"`
	Result       map[string]interface{} `json:"result,omitempty"`
}

type WorkflowActionStatus

type WorkflowActionStatus string
const (
	Pending    WorkflowActionStatus = "pending"
	Successful WorkflowActionStatus = "successful"
	Failed     WorkflowActionStatus = "failed"
)

type WorkflowActionType

type WorkflowActionType string
const (
	Webhook WorkflowActionType = "webhook"
)

type WorkflowActions

type WorkflowActions struct {
	Type WorkflowActionType `json:"type,omitempty"`
}

Requests

Jump to

Keyboard shortcuts

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