Documentation
¶
Index ¶
- type ActionRequest
- type AuthContext
- type EventContext
- type ExecutionStateContext
- func (c *ExecutionStateContext) Emit(channel, payloadType string, payloads []any) error
- func (c *ExecutionStateContext) Fail(reason, message string) error
- func (c *ExecutionStateContext) IsFinished() bool
- func (c *ExecutionStateContext) Pass() error
- func (c *ExecutionStateContext) SetKV(key, value string) error
- type HTTPContext
- type IntegrationContext
- func (c *IntegrationContext) Error(message string)
- func (c *IntegrationContext) GetConfig(name string) ([]byte, error)
- func (c *IntegrationContext) GetMetadata() any
- func (c *IntegrationContext) GetSecrets() ([]core.IntegrationSecret, error)
- func (c *IntegrationContext) GetState() string
- func (c *IntegrationContext) ID() uuid.UUID
- func (c *IntegrationContext) ListSubscriptions() ([]core.IntegrationSubscriptionContext, error)
- func (c *IntegrationContext) NewBrowserAction(action core.BrowserAction)
- func (c *IntegrationContext) Ready()
- func (c *IntegrationContext) RemoveBrowserAction()
- func (c *IntegrationContext) RequestWebhook(configuration any) error
- func (c *IntegrationContext) ScheduleActionCall(actionName string, parameters any, interval time.Duration) error
- func (c *IntegrationContext) ScheduleResync(interval time.Duration) error
- func (c *IntegrationContext) SetMetadata(metadata any)
- func (c *IntegrationContext) SetSecret(name string, value []byte) error
- func (c *IntegrationContext) Subscribe(subscription any) (*uuid.UUID, error)
- type MetadataContext
- type Payload
- type RequestContext
- type Subscription
- type WebhookContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶ added in v0.6.0
type AuthContext ¶
func (*AuthContext) AuthenticatedUser ¶
func (c *AuthContext) AuthenticatedUser() *core.User
type EventContext ¶
type EventContext struct {
Payloads []Payload
}
func (*EventContext) Count ¶
func (e *EventContext) Count() int
type ExecutionStateContext ¶
type ExecutionStateContext struct {
Finished bool
Passed bool
FailureReason string
FailureMessage string
Channel string
Type string
Payloads []any
KVs map[string]string
}
func (*ExecutionStateContext) Emit ¶
func (c *ExecutionStateContext) Emit(channel, payloadType string, payloads []any) error
func (*ExecutionStateContext) Fail ¶
func (c *ExecutionStateContext) Fail(reason, message string) error
func (*ExecutionStateContext) IsFinished ¶
func (c *ExecutionStateContext) IsFinished() bool
func (*ExecutionStateContext) Pass ¶
func (c *ExecutionStateContext) Pass() error
func (*ExecutionStateContext) SetKV ¶
func (c *ExecutionStateContext) SetKV(key, value string) error
type HTTPContext ¶ added in v0.0.43
type IntegrationContext ¶ added in v0.5.0
type IntegrationContext struct {
Configuration map[string]any
Metadata any
State string
StateDescription string
BrowserAction *core.BrowserAction
Secrets map[string]core.IntegrationSecret
WebhookRequests []any
ResyncRequests []time.Duration
ActionRequests []ActionRequest
Subscriptions []Subscription
}
func (*IntegrationContext) Error ¶ added in v0.6.0
func (c *IntegrationContext) Error(message string)
func (*IntegrationContext) GetConfig ¶ added in v0.5.0
func (c *IntegrationContext) GetConfig(name string) ([]byte, error)
func (*IntegrationContext) GetMetadata ¶ added in v0.5.0
func (c *IntegrationContext) GetMetadata() any
func (*IntegrationContext) GetSecrets ¶ added in v0.5.0
func (c *IntegrationContext) GetSecrets() ([]core.IntegrationSecret, error)
func (*IntegrationContext) GetState ¶ added in v0.5.0
func (c *IntegrationContext) GetState() string
func (*IntegrationContext) ID ¶ added in v0.5.0
func (c *IntegrationContext) ID() uuid.UUID
func (*IntegrationContext) ListSubscriptions ¶ added in v0.5.0
func (c *IntegrationContext) ListSubscriptions() ([]core.IntegrationSubscriptionContext, error)
func (*IntegrationContext) NewBrowserAction ¶ added in v0.5.0
func (c *IntegrationContext) NewBrowserAction(action core.BrowserAction)
func (*IntegrationContext) Ready ¶ added in v0.6.0
func (c *IntegrationContext) Ready()
func (*IntegrationContext) RemoveBrowserAction ¶ added in v0.5.0
func (c *IntegrationContext) RemoveBrowserAction()
func (*IntegrationContext) RequestWebhook ¶ added in v0.5.0
func (c *IntegrationContext) RequestWebhook(configuration any) error
func (*IntegrationContext) ScheduleActionCall ¶ added in v0.6.0
func (*IntegrationContext) ScheduleResync ¶ added in v0.5.0
func (c *IntegrationContext) ScheduleResync(interval time.Duration) error
func (*IntegrationContext) SetMetadata ¶ added in v0.5.0
func (c *IntegrationContext) SetMetadata(metadata any)
type MetadataContext ¶
type MetadataContext struct {
Metadata any
}
func (*MetadataContext) Get ¶
func (m *MetadataContext) Get() any
func (*MetadataContext) Set ¶
func (m *MetadataContext) Set(metadata any) error
type RequestContext ¶
func (*RequestContext) ScheduleActionCall ¶
type Subscription ¶ added in v0.0.45
type WebhookContext ¶
type WebhookContext struct {
Secret string
}
func (*WebhookContext) GetBaseURL ¶ added in v0.0.18
func (w *WebhookContext) GetBaseURL() string
func (*WebhookContext) GetSecret ¶
func (w *WebhookContext) GetSecret() ([]byte, error)
func (*WebhookContext) ResetSecret ¶ added in v0.0.18
func (w *WebhookContext) ResetSecret() ([]byte, []byte, error)
func (*WebhookContext) SetSecret ¶ added in v0.0.18
func (w *WebhookContext) SetSecret(secret []byte) error
func (*WebhookContext) Setup ¶
func (w *WebhookContext) Setup() (string, error)
Click to show internal directories.
Click to hide internal directories.