Documentation
¶
Index ¶
- func BuildProcessQueueContext(tx *gorm.DB, node *models.WorkflowNode, ...) (*core.ProcessQueueContext, error)
- type AppInstallationContext
- func (c *AppInstallationContext) GetConfig(name string) ([]byte, error)
- func (c *AppInstallationContext) GetMetadata() any
- func (c *AppInstallationContext) GetSecrets() ([]core.InstallationSecret, error)
- func (c *AppInstallationContext) GetState() string
- func (c *AppInstallationContext) ID() uuid.UUID
- func (c *AppInstallationContext) NewBrowserAction(action core.BrowserAction)
- func (c *AppInstallationContext) RemoveBrowserAction()
- func (c *AppInstallationContext) RequestWebhook(configuration any) error
- func (c *AppInstallationContext) ScheduleResync(interval time.Duration) error
- func (c *AppInstallationContext) SetMetadata(value any)
- func (c *AppInstallationContext) SetSecret(name string, value []byte) error
- func (c *AppInstallationContext) SetState(state, stateDescription string)
- type AuthContext
- type ConfigurationBuildError
- type EventContext
- type ExecutionMetadataContext
- type ExecutionRequestContext
- type ExecutionStateContext
- func (s *ExecutionStateContext) Emit(channel, payloadType string, payloads []any) error
- func (s *ExecutionStateContext) Fail(reason, message string) error
- func (s *ExecutionStateContext) IsFinished() bool
- func (s *ExecutionStateContext) Pass() error
- func (s *ExecutionStateContext) SetKV(key, value string) error
- type IntegrationContext
- type NodeConfigurationBuilder
- func (b *NodeConfigurationBuilder) Build(configuration map[string]any) (map[string]any, error)
- func (b *NodeConfigurationBuilder) ForBlueprintNode(parentBlueprintNode *models.WorkflowNode) *NodeConfigurationBuilder
- func (b *NodeConfigurationBuilder) ResolveExpression(expression string) (any, error)
- func (b *NodeConfigurationBuilder) WithInput(input any) *NodeConfigurationBuilder
- func (b *NodeConfigurationBuilder) WithPreviousExecution(previousExecutionID *uuid.UUID) *NodeConfigurationBuilder
- func (b *NodeConfigurationBuilder) WithRootEvent(rootEventID *uuid.UUID) *NodeConfigurationBuilder
- type NodeMetadataContext
- type NodeRequestContext
- type WebhookContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProcessQueueContext ¶
func BuildProcessQueueContext(tx *gorm.DB, node *models.WorkflowNode, queueItem *models.WorkflowNodeQueueItem) (*core.ProcessQueueContext, error)
Types ¶
type AppInstallationContext ¶
type AppInstallationContext struct {
// contains filtered or unexported fields
}
func NewAppInstallationContext ¶
func NewAppInstallationContext(tx *gorm.DB, node *models.WorkflowNode, installation *models.AppInstallation, encryptor crypto.Encryptor, registry *registry.Registry) *AppInstallationContext
func (*AppInstallationContext) GetConfig ¶
func (c *AppInstallationContext) GetConfig(name string) ([]byte, error)
func (*AppInstallationContext) GetMetadata ¶
func (c *AppInstallationContext) GetMetadata() any
func (*AppInstallationContext) GetSecrets ¶
func (c *AppInstallationContext) GetSecrets() ([]core.InstallationSecret, error)
func (*AppInstallationContext) GetState ¶
func (c *AppInstallationContext) GetState() string
func (*AppInstallationContext) ID ¶
func (c *AppInstallationContext) ID() uuid.UUID
func (*AppInstallationContext) NewBrowserAction ¶
func (c *AppInstallationContext) NewBrowserAction(action core.BrowserAction)
func (*AppInstallationContext) RemoveBrowserAction ¶
func (c *AppInstallationContext) RemoveBrowserAction()
func (*AppInstallationContext) RequestWebhook ¶
func (c *AppInstallationContext) RequestWebhook(configuration any) error
func (*AppInstallationContext) ScheduleResync ¶ added in v0.0.21
func (c *AppInstallationContext) ScheduleResync(interval time.Duration) error
func (*AppInstallationContext) SetMetadata ¶
func (c *AppInstallationContext) SetMetadata(value any)
func (*AppInstallationContext) SetSecret ¶
func (c *AppInstallationContext) SetSecret(name string, value []byte) error
func (*AppInstallationContext) SetState ¶
func (c *AppInstallationContext) SetState(state, stateDescription string)
type AuthContext ¶
type AuthContext struct {
// contains filtered or unexported fields
}
func NewAuthContext ¶
func NewAuthContext(tx *gorm.DB, orgID uuid.UUID, authService authorization.Authorization, authenticatedUser *models.User) *AuthContext
func (*AuthContext) AuthenticatedUser ¶
func (c *AuthContext) AuthenticatedUser() *core.User
type ConfigurationBuildError ¶
type ConfigurationBuildError struct {
Err error
QueueItem *models.WorkflowNodeQueueItem
Node *models.WorkflowNode
Event *models.WorkflowEvent
RootEventID uuid.UUID
}
func (*ConfigurationBuildError) Error ¶
func (e *ConfigurationBuildError) Error() string
func (*ConfigurationBuildError) Unwrap ¶
func (e *ConfigurationBuildError) Unwrap() error
type EventContext ¶
type EventContext struct {
// contains filtered or unexported fields
}
func NewEventContext ¶
func NewEventContext(tx *gorm.DB, workflowNode *models.WorkflowNode) *EventContext
type ExecutionMetadataContext ¶
type ExecutionMetadataContext struct {
// contains filtered or unexported fields
}
func NewExecutionMetadataContext ¶
func NewExecutionMetadataContext(tx *gorm.DB, execution *models.WorkflowNodeExecution) *ExecutionMetadataContext
func (*ExecutionMetadataContext) Get ¶
func (m *ExecutionMetadataContext) Get() any
func (*ExecutionMetadataContext) Set ¶
func (m *ExecutionMetadataContext) Set(value any) error
type ExecutionRequestContext ¶
type ExecutionRequestContext struct {
// contains filtered or unexported fields
}
func NewExecutionRequestContext ¶
func NewExecutionRequestContext(tx *gorm.DB, execution *models.WorkflowNodeExecution) *ExecutionRequestContext
func (*ExecutionRequestContext) ScheduleActionCall ¶
type ExecutionStateContext ¶
type ExecutionStateContext struct {
// contains filtered or unexported fields
}
func NewExecutionStateContext ¶
func NewExecutionStateContext(tx *gorm.DB, execution *models.WorkflowNodeExecution) *ExecutionStateContext
func (*ExecutionStateContext) Emit ¶
func (s *ExecutionStateContext) Emit(channel, payloadType string, payloads []any) error
func (*ExecutionStateContext) Fail ¶
func (s *ExecutionStateContext) Fail(reason, message string) error
func (*ExecutionStateContext) IsFinished ¶
func (s *ExecutionStateContext) IsFinished() bool
func (*ExecutionStateContext) Pass ¶
func (s *ExecutionStateContext) Pass() error
func (*ExecutionStateContext) SetKV ¶
func (s *ExecutionStateContext) SetKV(key, value string) error
type IntegrationContext ¶
type IntegrationContext struct {
// contains filtered or unexported fields
}
func NewIntegrationContext ¶
func NewIntegrationContext(tx *gorm.DB, registry *registry.Registry) *IntegrationContext
func (*IntegrationContext) GetIntegration ¶
func (c *IntegrationContext) GetIntegration(ID string) (integrations.ResourceManager, error)
type NodeConfigurationBuilder ¶
type NodeConfigurationBuilder struct {
// contains filtered or unexported fields
}
func NewNodeConfigurationBuilder ¶
func NewNodeConfigurationBuilder(tx *gorm.DB, workflowID uuid.UUID) *NodeConfigurationBuilder
func (*NodeConfigurationBuilder) ForBlueprintNode ¶
func (b *NodeConfigurationBuilder) ForBlueprintNode(parentBlueprintNode *models.WorkflowNode) *NodeConfigurationBuilder
func (*NodeConfigurationBuilder) ResolveExpression ¶
func (b *NodeConfigurationBuilder) ResolveExpression(expression string) (any, error)
func (*NodeConfigurationBuilder) WithInput ¶
func (b *NodeConfigurationBuilder) WithInput(input any) *NodeConfigurationBuilder
func (*NodeConfigurationBuilder) WithPreviousExecution ¶
func (b *NodeConfigurationBuilder) WithPreviousExecution(previousExecutionID *uuid.UUID) *NodeConfigurationBuilder
func (*NodeConfigurationBuilder) WithRootEvent ¶
func (b *NodeConfigurationBuilder) WithRootEvent(rootEventID *uuid.UUID) *NodeConfigurationBuilder
type NodeMetadataContext ¶
type NodeMetadataContext struct {
// contains filtered or unexported fields
}
func NewNodeMetadataContext ¶
func NewNodeMetadataContext(tx *gorm.DB, node *models.WorkflowNode) *NodeMetadataContext
func (*NodeMetadataContext) Get ¶
func (m *NodeMetadataContext) Get() any
func (*NodeMetadataContext) Set ¶
func (m *NodeMetadataContext) Set(value any) error
type NodeRequestContext ¶
type NodeRequestContext struct {
// contains filtered or unexported fields
}
func NewNodeRequestContext ¶
func NewNodeRequestContext(tx *gorm.DB, node *models.WorkflowNode) *NodeRequestContext
func (*NodeRequestContext) ScheduleActionCall ¶
type WebhookContext ¶
type WebhookContext struct {
// contains filtered or unexported fields
}
func NewWebhookContext ¶
func NewWebhookContext(ctx context.Context, tx *gorm.DB, encryptor crypto.Encryptor, node *models.WorkflowNode, baseURL string) *WebhookContext
func (*WebhookContext) GetBaseURL ¶ added in v0.0.18
func (c *WebhookContext) GetBaseURL() string
func (*WebhookContext) GetSecret ¶
func (c *WebhookContext) GetSecret() ([]byte, error)
func (*WebhookContext) ResetSecret ¶ added in v0.0.18
func (c *WebhookContext) ResetSecret() ([]byte, []byte, error)
func (*WebhookContext) Setup ¶
func (c *WebhookContext) Setup(options *core.WebhookSetupOptions) (string, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.