Documentation
¶
Index ¶
- 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(metadata any)
- func (c *AppInstallationContext) SetSecret(name string, value []byte) error
- func (c *AppInstallationContext) SetState(state, stateDescription string)
- 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 MetadataContext
- type Payload
- type RequestContext
- type WebhookContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInstallationContext ¶
type AppInstallationContext struct {
Configuration map[string]any
Metadata any
State string
StateDescription string
BrowserAction *core.BrowserAction
Secrets map[string]core.InstallationSecret
WebhookRequests []any
ResyncRequests []time.Duration
}
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(metadata 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 ¶
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 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 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(options *core.WebhookSetupOptions) (string, error)
Click to show internal directories.
Click to hide internal directories.