Documentation
¶
Index ¶
- Constants
- type APIError
- type CancelDeploy
- func (c *CancelDeploy) Actions() []core.Action
- func (c *CancelDeploy) Cancel(ctx core.ExecutionContext) error
- func (c *CancelDeploy) Cleanup(ctx core.SetupContext) error
- func (c *CancelDeploy) Color() string
- func (c *CancelDeploy) Configuration() []configuration.Field
- func (c *CancelDeploy) Description() string
- func (c *CancelDeploy) Documentation() string
- func (c *CancelDeploy) ExampleOutput() map[string]any
- func (c *CancelDeploy) Execute(ctx core.ExecutionContext) error
- func (c *CancelDeploy) HandleAction(ctx core.ActionContext) error
- func (c *CancelDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CancelDeploy) Icon() string
- func (c *CancelDeploy) Label() string
- func (c *CancelDeploy) Name() string
- func (c *CancelDeploy) OutputChannels(configuration any) []core.OutputChannel
- func (c *CancelDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CancelDeploy) Setup(ctx core.SetupContext) error
- type CancelDeployConfiguration
- type Client
- func (c *Client) CancelDeploy(serviceID string, deployID string) (DeployResponse, error)
- func (c *Client) CreateWebhook(request CreateWebhookRequest) (*Webhook, error)
- func (c *Client) DeleteWebhook(webhookID string) error
- func (c *Client) GetDeploy(serviceID string, deployID string) (DeployResponse, error)
- func (c *Client) GetEvent(eventID string) (EventResponse, error)
- func (c *Client) GetService(serviceID string) (Service, error)
- func (c *Client) GetWebhook(webhookID string) (*Webhook, error)
- func (c *Client) ListServices(workspaceID string) ([]Service, error)
- func (c *Client) ListWebhooks(workspaceID string) ([]Webhook, error)
- func (c *Client) ListWorkspaces() ([]Workspace, error)
- func (c *Client) PurgeCache(serviceID string) error
- func (c *Client) RollbackDeploy(serviceID string, deployID string) (DeployResponse, error)
- func (c *Client) TriggerDeploy(serviceID string, clearCache bool) (DeployResponse, error)
- func (c *Client) UpdateEnvVar(serviceID string, key string, request UpdateEnvVarRequest) (EnvVar, error)
- func (c *Client) UpdateWebhook(webhookID string, request UpdateWebhookRequest) (*Webhook, error)
- func (c *Client) Verify() error
- type Configuration
- type CreateWebhookRequest
- type Deploy
- func (c *Deploy) Actions() []core.Action
- func (c *Deploy) Cancel(ctx core.ExecutionContext) error
- func (c *Deploy) Cleanup(ctx core.SetupContext) error
- func (c *Deploy) Color() string
- func (c *Deploy) Configuration() []configuration.Field
- func (c *Deploy) Description() string
- func (c *Deploy) Documentation() string
- func (c *Deploy) ExampleOutput() map[string]any
- func (c *Deploy) Execute(ctx core.ExecutionContext) error
- func (c *Deploy) HandleAction(ctx core.ActionContext) error
- func (c *Deploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *Deploy) Icon() string
- func (c *Deploy) Label() string
- func (c *Deploy) Name() string
- func (c *Deploy) OutputChannels(configuration any) []core.OutputChannel
- func (c *Deploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *Deploy) Setup(ctx core.SetupContext) error
- type DeployCommit
- type DeployConfiguration
- type DeployExecutionMetadata
- type DeployImage
- type DeployMetadata
- type DeployResponse
- type EnvVar
- type EventBuildResponseDetails
- type EventDeployResponseDetails
- type EventDetailValues
- type EventResponse
- type EventResponseDetails
- type EventResponseResourceDetails
- type EventUnknownResponseDetails
- type GetDeploy
- func (c *GetDeploy) Actions() []core.Action
- func (c *GetDeploy) Cancel(ctx core.ExecutionContext) error
- func (c *GetDeploy) Cleanup(ctx core.SetupContext) error
- func (c *GetDeploy) Color() string
- func (c *GetDeploy) Configuration() []configuration.Field
- func (c *GetDeploy) Description() string
- func (c *GetDeploy) Documentation() string
- func (c *GetDeploy) ExampleOutput() map[string]any
- func (c *GetDeploy) Execute(ctx core.ExecutionContext) error
- func (c *GetDeploy) HandleAction(ctx core.ActionContext) error
- func (c *GetDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetDeploy) Icon() string
- func (c *GetDeploy) Label() string
- func (c *GetDeploy) Name() string
- func (c *GetDeploy) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetDeploy) Setup(ctx core.SetupContext) error
- type GetDeployConfiguration
- type GetService
- func (c *GetService) Actions() []core.Action
- func (c *GetService) Cancel(ctx core.ExecutionContext) error
- func (c *GetService) Cleanup(ctx core.SetupContext) error
- func (c *GetService) Color() string
- func (c *GetService) Configuration() []configuration.Field
- func (c *GetService) Description() string
- func (c *GetService) Documentation() string
- func (c *GetService) ExampleOutput() map[string]any
- func (c *GetService) Execute(ctx core.ExecutionContext) error
- func (c *GetService) HandleAction(ctx core.ActionContext) error
- func (c *GetService) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetService) Icon() string
- func (c *GetService) Label() string
- func (c *GetService) Name() string
- func (c *GetService) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetService) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetService) Setup(ctx core.SetupContext) error
- type GetServiceConfiguration
- type Metadata
- type OnBuild
- func (t *OnBuild) Actions() []core.Action
- func (t *OnBuild) Cleanup(ctx core.TriggerContext) error
- func (t *OnBuild) Color() string
- func (t *OnBuild) Configuration() []configuration.Field
- func (t *OnBuild) Description() string
- func (t *OnBuild) Documentation() string
- func (t *OnBuild) ExampleData() map[string]any
- func (t *OnBuild) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnBuild) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnBuild) Icon() string
- func (t *OnBuild) Label() string
- func (t *OnBuild) Name() string
- func (t *OnBuild) Setup(ctx core.TriggerContext) error
- type OnDeploy
- func (t *OnDeploy) Actions() []core.Action
- func (t *OnDeploy) Cleanup(ctx core.TriggerContext) error
- func (t *OnDeploy) Color() string
- func (t *OnDeploy) Configuration() []configuration.Field
- func (t *OnDeploy) Description() string
- func (t *OnDeploy) Documentation() string
- func (t *OnDeploy) ExampleData() map[string]any
- func (t *OnDeploy) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnDeploy) Icon() string
- func (t *OnDeploy) Label() string
- func (t *OnDeploy) Name() string
- func (t *OnDeploy) Setup(ctx core.TriggerContext) error
- type OnResourceEventConfiguration
- type OnResourceEventMetadata
- type PurgeCache
- func (c *PurgeCache) Actions() []core.Action
- func (c *PurgeCache) Cancel(ctx core.ExecutionContext) error
- func (c *PurgeCache) Cleanup(ctx core.SetupContext) error
- func (c *PurgeCache) Color() string
- func (c *PurgeCache) Configuration() []configuration.Field
- func (c *PurgeCache) Description() string
- func (c *PurgeCache) Documentation() string
- func (c *PurgeCache) ExampleOutput() map[string]any
- func (c *PurgeCache) Execute(ctx core.ExecutionContext) error
- func (c *PurgeCache) HandleAction(ctx core.ActionContext) error
- func (c *PurgeCache) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *PurgeCache) Icon() string
- func (c *PurgeCache) Label() string
- func (c *PurgeCache) Name() string
- func (c *PurgeCache) OutputChannels(configuration any) []core.OutputChannel
- func (c *PurgeCache) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *PurgeCache) Setup(ctx core.SetupContext) error
- type PurgeCacheConfiguration
- type Render
- func (r *Render) Actions() []core.Action
- func (r *Render) Cleanup(ctx core.IntegrationCleanupContext) error
- func (r *Render) Components() []core.Component
- func (r *Render) Configuration() []configuration.Field
- func (r *Render) Description() string
- func (r *Render) HandleAction(ctx core.IntegrationActionContext) error
- func (r *Render) HandleRequest(ctx core.HTTPRequestContext)
- func (r *Render) Icon() string
- func (r *Render) Instructions() string
- func (r *Render) Label() string
- func (r *Render) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (r *Render) Name() string
- func (r *Render) Sync(ctx core.SyncContext) error
- func (r *Render) Triggers() []core.Trigger
- type RenderWebhookHandler
- func (h *RenderWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
- func (h *RenderWebhookHandler) CompareConfig(a, b any) (bool, error)
- func (h *RenderWebhookHandler) Merge(current, requested any) (any, bool, error)
- func (h *RenderWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
- type RollbackDeploy
- func (c *RollbackDeploy) Actions() []core.Action
- func (c *RollbackDeploy) Cancel(ctx core.ExecutionContext) error
- func (c *RollbackDeploy) Cleanup(ctx core.SetupContext) error
- func (c *RollbackDeploy) Color() string
- func (c *RollbackDeploy) Configuration() []configuration.Field
- func (c *RollbackDeploy) Description() string
- func (c *RollbackDeploy) Documentation() string
- func (c *RollbackDeploy) ExampleOutput() map[string]any
- func (c *RollbackDeploy) Execute(ctx core.ExecutionContext) error
- func (c *RollbackDeploy) HandleAction(ctx core.ActionContext) error
- func (c *RollbackDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *RollbackDeploy) Icon() string
- func (c *RollbackDeploy) Label() string
- func (c *RollbackDeploy) Name() string
- func (c *RollbackDeploy) OutputChannels(configuration any) []core.OutputChannel
- func (c *RollbackDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *RollbackDeploy) Setup(ctx core.SetupContext) error
- type RollbackDeployConfiguration
- type Service
- type ServiceMetadata
- type UpdateEnvVar
- func (c *UpdateEnvVar) Actions() []core.Action
- func (c *UpdateEnvVar) Cancel(ctx core.ExecutionContext) error
- func (c *UpdateEnvVar) Cleanup(ctx core.SetupContext) error
- func (c *UpdateEnvVar) Color() string
- func (c *UpdateEnvVar) Configuration() []configuration.Field
- func (c *UpdateEnvVar) Description() string
- func (c *UpdateEnvVar) Documentation() string
- func (c *UpdateEnvVar) ExampleOutput() map[string]any
- func (c *UpdateEnvVar) Execute(ctx core.ExecutionContext) error
- func (c *UpdateEnvVar) HandleAction(ctx core.ActionContext) error
- func (c *UpdateEnvVar) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *UpdateEnvVar) Icon() string
- func (c *UpdateEnvVar) Label() string
- func (c *UpdateEnvVar) Name() string
- func (c *UpdateEnvVar) OutputChannels(configuration any) []core.OutputChannel
- func (c *UpdateEnvVar) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *UpdateEnvVar) Setup(ctx core.SetupContext) error
- type UpdateEnvVarConfiguration
- type UpdateEnvVarRequest
- type UpdateWebhookRequest
- type Webhook
- type WebhookConfiguration
- type WebhookMetadata
- type Workspace
- type WorkspaceMetadata
Constants ¶
View Source
const ( CancelDeployPayloadType = "render.deploy.finished" CancelDeploySuccessOutputChannel = "success" CancelDeployFailedOutputChannel = "failed" CancelDeployPollInterval = 5 * time.Minute )
View Source
const ( DeployPayloadType = "render.deploy.finished" DeploySuccessOutputChannel = "success" DeployFailedOutputChannel = "failed" DeployPollInterval = 5 * time.Minute // fallback when deploy_ended webhook doesn't arrive )
View Source
const ( RollbackDeployPayloadType = "render.deploy.finished" RollbackDeploySuccessOutputChannel = "success" RollbackDeployFailedOutputChannel = "failed" RollbackDeployPollInterval = 5 * time.Minute )
View Source
const GetDeployPayloadType = "render.deploy"
View Source
const GetServicePayloadType = "render.service"
View Source
const PurgeCachePayloadType = "render.cache.purge.requested"
View Source
const UpdateEnvVarPayloadType = "render.envVar.updated"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelDeploy ¶
type CancelDeploy struct{}
func (*CancelDeploy) Actions ¶
func (c *CancelDeploy) Actions() []core.Action
func (*CancelDeploy) Cancel ¶
func (c *CancelDeploy) Cancel(ctx core.ExecutionContext) error
func (*CancelDeploy) Cleanup ¶
func (c *CancelDeploy) Cleanup(ctx core.SetupContext) error
func (*CancelDeploy) Color ¶
func (c *CancelDeploy) Color() string
func (*CancelDeploy) Configuration ¶
func (c *CancelDeploy) Configuration() []configuration.Field
func (*CancelDeploy) Description ¶
func (c *CancelDeploy) Description() string
func (*CancelDeploy) Documentation ¶
func (c *CancelDeploy) Documentation() string
func (*CancelDeploy) ExampleOutput ¶
func (c *CancelDeploy) ExampleOutput() map[string]any
func (*CancelDeploy) Execute ¶
func (c *CancelDeploy) Execute(ctx core.ExecutionContext) error
func (*CancelDeploy) HandleAction ¶
func (c *CancelDeploy) HandleAction(ctx core.ActionContext) error
func (*CancelDeploy) HandleWebhook ¶
func (c *CancelDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CancelDeploy) Icon ¶
func (c *CancelDeploy) Icon() string
func (*CancelDeploy) Label ¶
func (c *CancelDeploy) Label() string
func (*CancelDeploy) Name ¶
func (c *CancelDeploy) Name() string
func (*CancelDeploy) OutputChannels ¶
func (c *CancelDeploy) OutputChannels(configuration any) []core.OutputChannel
func (*CancelDeploy) ProcessQueueItem ¶
func (c *CancelDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CancelDeploy) Setup ¶
func (c *CancelDeploy) Setup(ctx core.SetupContext) error
type Client ¶
func NewClient ¶
func NewClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) CancelDeploy ¶
func (c *Client) CancelDeploy(serviceID string, deployID string) (DeployResponse, error)
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(request CreateWebhookRequest) (*Webhook, error)
func (*Client) DeleteWebhook ¶
func (*Client) GetDeploy ¶
func (c *Client) GetDeploy(serviceID string, deployID string) (DeployResponse, error)
func (*Client) ListWorkspaces ¶
func (*Client) PurgeCache ¶
func (*Client) RollbackDeploy ¶
func (c *Client) RollbackDeploy(serviceID string, deployID string) (DeployResponse, error)
func (*Client) TriggerDeploy ¶
func (c *Client) TriggerDeploy(serviceID string, clearCache bool) (DeployResponse, error)
func (*Client) UpdateEnvVar ¶
func (*Client) UpdateWebhook ¶
func (c *Client) UpdateWebhook(webhookID string, request UpdateWebhookRequest) (*Webhook, error)
type Configuration ¶
type CreateWebhookRequest ¶
type Deploy ¶
type Deploy struct{}
func (*Deploy) Configuration ¶
func (c *Deploy) Configuration() []configuration.Field
func (*Deploy) Description ¶
func (*Deploy) Documentation ¶
func (*Deploy) ExampleOutput ¶
func (*Deploy) HandleAction ¶
func (c *Deploy) HandleAction(ctx core.ActionContext) error
func (*Deploy) HandleWebhook ¶
func (c *Deploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*Deploy) OutputChannels ¶
func (c *Deploy) OutputChannels(configuration any) []core.OutputChannel
func (*Deploy) ProcessQueueItem ¶
type DeployCommit ¶
type DeployConfiguration ¶
type DeployExecutionMetadata ¶
type DeployExecutionMetadata struct {
Deploy *DeployMetadata `json:"deploy" mapstructure:"deploy"`
}
type DeployImage ¶
type DeployMetadata ¶
type DeployResponse ¶
type DeployResponse struct {
ID string `json:"id"`
Status string `json:"status"`
Trigger string `json:"trigger,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
StartedAt string `json:"startedAt,omitempty"`
FinishedAt string `json:"finishedAt,omitempty"`
Commit *DeployCommit `json:"commit,omitempty"`
Image *DeployImage `json:"image,omitempty"`
}
type EventBuildResponseDetails ¶
type EventBuildResponseDetails struct {
BuildID string `json:"buildId"`
}
type EventDeployResponseDetails ¶
type EventDeployResponseDetails struct {
DeployID string `json:"deployId"`
}
type EventDetailValues ¶
type EventResponse ¶
type EventResponse struct {
ID string `json:"id"`
Timestamp string `json:"timestamp"`
ServiceID string `json:"serviceId"`
Type string `json:"type"`
Details EventResponseDetails `json:"details"`
}
func (*EventResponse) UnmarshalJSON ¶
func (r *EventResponse) UnmarshalJSON(data []byte) error
type EventResponseDetails ¶
type EventResponseDetails interface{}
type EventResponseResourceDetails ¶
type EventResponseResourceDetails struct {
ID string `json:"id"`
}
type EventUnknownResponseDetails ¶
type EventUnknownResponseDetails struct{}
type GetDeploy ¶
type GetDeploy struct{}
func (*GetDeploy) Configuration ¶
func (c *GetDeploy) Configuration() []configuration.Field
func (*GetDeploy) Description ¶
func (*GetDeploy) Documentation ¶
func (*GetDeploy) ExampleOutput ¶
func (*GetDeploy) HandleAction ¶
func (c *GetDeploy) HandleAction(ctx core.ActionContext) error
func (*GetDeploy) HandleWebhook ¶
func (c *GetDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetDeploy) OutputChannels ¶
func (c *GetDeploy) OutputChannels(configuration any) []core.OutputChannel
func (*GetDeploy) ProcessQueueItem ¶
type GetDeployConfiguration ¶
type GetService ¶
type GetService struct{}
func (*GetService) Actions ¶
func (c *GetService) Actions() []core.Action
func (*GetService) Cancel ¶
func (c *GetService) Cancel(ctx core.ExecutionContext) error
func (*GetService) Cleanup ¶
func (c *GetService) Cleanup(ctx core.SetupContext) error
func (*GetService) Color ¶
func (c *GetService) Color() string
func (*GetService) Configuration ¶
func (c *GetService) Configuration() []configuration.Field
func (*GetService) Description ¶
func (c *GetService) Description() string
func (*GetService) Documentation ¶
func (c *GetService) Documentation() string
func (*GetService) ExampleOutput ¶
func (c *GetService) ExampleOutput() map[string]any
func (*GetService) Execute ¶
func (c *GetService) Execute(ctx core.ExecutionContext) error
func (*GetService) HandleAction ¶
func (c *GetService) HandleAction(ctx core.ActionContext) error
func (*GetService) HandleWebhook ¶
func (c *GetService) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetService) Icon ¶
func (c *GetService) Icon() string
func (*GetService) Label ¶
func (c *GetService) Label() string
func (*GetService) Name ¶
func (c *GetService) Name() string
func (*GetService) OutputChannels ¶
func (c *GetService) OutputChannels(configuration any) []core.OutputChannel
func (*GetService) ProcessQueueItem ¶
func (c *GetService) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetService) Setup ¶
func (c *GetService) Setup(ctx core.SetupContext) error
type GetServiceConfiguration ¶
type GetServiceConfiguration struct {
Service string `json:"service" mapstructure:"service"`
}
type Metadata ¶
type Metadata struct {
Workspace *WorkspaceMetadata `json:"workspace,omitempty" mapstructure:"workspace"`
}
type OnBuild ¶
type OnBuild struct{}
func (*OnBuild) Configuration ¶
func (t *OnBuild) Configuration() []configuration.Field
func (*OnBuild) Description ¶
func (*OnBuild) Documentation ¶
func (*OnBuild) ExampleData ¶
func (*OnBuild) HandleAction ¶
func (*OnBuild) HandleWebhook ¶
func (t *OnBuild) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnDeploy ¶
type OnDeploy struct{}
func (*OnDeploy) Configuration ¶
func (t *OnDeploy) Configuration() []configuration.Field
func (*OnDeploy) Description ¶
func (*OnDeploy) Documentation ¶
func (*OnDeploy) ExampleData ¶
func (*OnDeploy) HandleAction ¶
func (*OnDeploy) HandleWebhook ¶
func (t *OnDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnResourceEventMetadata ¶
type OnResourceEventMetadata struct {
Service *ServiceMetadata `json:"service"`
}
type PurgeCache ¶
type PurgeCache struct{}
func (*PurgeCache) Actions ¶
func (c *PurgeCache) Actions() []core.Action
func (*PurgeCache) Cancel ¶
func (c *PurgeCache) Cancel(ctx core.ExecutionContext) error
func (*PurgeCache) Cleanup ¶
func (c *PurgeCache) Cleanup(ctx core.SetupContext) error
func (*PurgeCache) Color ¶
func (c *PurgeCache) Color() string
func (*PurgeCache) Configuration ¶
func (c *PurgeCache) Configuration() []configuration.Field
func (*PurgeCache) Description ¶
func (c *PurgeCache) Description() string
func (*PurgeCache) Documentation ¶
func (c *PurgeCache) Documentation() string
func (*PurgeCache) ExampleOutput ¶
func (c *PurgeCache) ExampleOutput() map[string]any
func (*PurgeCache) Execute ¶
func (c *PurgeCache) Execute(ctx core.ExecutionContext) error
func (*PurgeCache) HandleAction ¶
func (c *PurgeCache) HandleAction(ctx core.ActionContext) error
func (*PurgeCache) HandleWebhook ¶
func (c *PurgeCache) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*PurgeCache) Icon ¶
func (c *PurgeCache) Icon() string
func (*PurgeCache) Label ¶
func (c *PurgeCache) Label() string
func (*PurgeCache) Name ¶
func (c *PurgeCache) Name() string
func (*PurgeCache) OutputChannels ¶
func (c *PurgeCache) OutputChannels(configuration any) []core.OutputChannel
func (*PurgeCache) ProcessQueueItem ¶
func (c *PurgeCache) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*PurgeCache) Setup ¶
func (c *PurgeCache) Setup(ctx core.SetupContext) error
type PurgeCacheConfiguration ¶
type PurgeCacheConfiguration struct {
Service string `json:"service" mapstructure:"service"`
}
type Render ¶
type Render struct{}
func (*Render) Components ¶
func (*Render) Configuration ¶
func (r *Render) Configuration() []configuration.Field
func (*Render) Description ¶
func (*Render) HandleAction ¶
func (r *Render) HandleAction(ctx core.IntegrationActionContext) error
func (*Render) HandleRequest ¶
func (r *Render) HandleRequest(ctx core.HTTPRequestContext)
func (*Render) Instructions ¶
func (*Render) ListResources ¶
func (r *Render) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type RenderWebhookHandler ¶
type RenderWebhookHandler struct{}
func (*RenderWebhookHandler) Cleanup ¶
func (h *RenderWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
func (*RenderWebhookHandler) CompareConfig ¶
func (h *RenderWebhookHandler) CompareConfig(a, b any) (bool, error)
func (*RenderWebhookHandler) Merge ¶
func (h *RenderWebhookHandler) Merge(current, requested any) (any, bool, error)
func (*RenderWebhookHandler) Setup ¶
func (h *RenderWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
type RollbackDeploy ¶
type RollbackDeploy struct{}
func (*RollbackDeploy) Actions ¶
func (c *RollbackDeploy) Actions() []core.Action
func (*RollbackDeploy) Cancel ¶
func (c *RollbackDeploy) Cancel(ctx core.ExecutionContext) error
func (*RollbackDeploy) Cleanup ¶
func (c *RollbackDeploy) Cleanup(ctx core.SetupContext) error
func (*RollbackDeploy) Color ¶
func (c *RollbackDeploy) Color() string
func (*RollbackDeploy) Configuration ¶
func (c *RollbackDeploy) Configuration() []configuration.Field
func (*RollbackDeploy) Description ¶
func (c *RollbackDeploy) Description() string
func (*RollbackDeploy) Documentation ¶
func (c *RollbackDeploy) Documentation() string
func (*RollbackDeploy) ExampleOutput ¶
func (c *RollbackDeploy) ExampleOutput() map[string]any
func (*RollbackDeploy) Execute ¶
func (c *RollbackDeploy) Execute(ctx core.ExecutionContext) error
func (*RollbackDeploy) HandleAction ¶
func (c *RollbackDeploy) HandleAction(ctx core.ActionContext) error
func (*RollbackDeploy) HandleWebhook ¶
func (c *RollbackDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*RollbackDeploy) Icon ¶
func (c *RollbackDeploy) Icon() string
func (*RollbackDeploy) Label ¶
func (c *RollbackDeploy) Label() string
func (*RollbackDeploy) Name ¶
func (c *RollbackDeploy) Name() string
func (*RollbackDeploy) OutputChannels ¶
func (c *RollbackDeploy) OutputChannels(configuration any) []core.OutputChannel
func (*RollbackDeploy) ProcessQueueItem ¶
func (c *RollbackDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*RollbackDeploy) Setup ¶
func (c *RollbackDeploy) Setup(ctx core.SetupContext) error
type Service ¶
type Service struct {
ID string `json:"id"`
Name string `json:"name"`
OwnerID string `json:"ownerId,omitempty"`
Type string `json:"type,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
DashboardURL string `json:"dashboardUrl,omitempty"`
Slug string `json:"slug,omitempty"`
RootDir string `json:"rootDir,omitempty"`
Suspended string `json:"suspended,omitempty"`
Suspenders []string `json:"suspenders,omitempty"`
AutoDeploy string `json:"autoDeploy,omitempty"`
NotifyOnFail string `json:"notifyOnFail,omitempty"`
Repo string `json:"repo,omitempty"`
Branch string `json:"branch,omitempty"`
EnvironmentID string `json:"environmentId,omitempty"`
ImagePath string `json:"imagePath,omitempty"`
ServiceDetails map[string]any `json:"serviceDetails,omitempty"`
}
type ServiceMetadata ¶
type UpdateEnvVar ¶
type UpdateEnvVar struct{}
func (*UpdateEnvVar) Actions ¶
func (c *UpdateEnvVar) Actions() []core.Action
func (*UpdateEnvVar) Cancel ¶
func (c *UpdateEnvVar) Cancel(ctx core.ExecutionContext) error
func (*UpdateEnvVar) Cleanup ¶
func (c *UpdateEnvVar) Cleanup(ctx core.SetupContext) error
func (*UpdateEnvVar) Color ¶
func (c *UpdateEnvVar) Color() string
func (*UpdateEnvVar) Configuration ¶
func (c *UpdateEnvVar) Configuration() []configuration.Field
func (*UpdateEnvVar) Description ¶
func (c *UpdateEnvVar) Description() string
func (*UpdateEnvVar) Documentation ¶
func (c *UpdateEnvVar) Documentation() string
func (*UpdateEnvVar) ExampleOutput ¶
func (c *UpdateEnvVar) ExampleOutput() map[string]any
func (*UpdateEnvVar) Execute ¶
func (c *UpdateEnvVar) Execute(ctx core.ExecutionContext) error
func (*UpdateEnvVar) HandleAction ¶
func (c *UpdateEnvVar) HandleAction(ctx core.ActionContext) error
func (*UpdateEnvVar) HandleWebhook ¶
func (c *UpdateEnvVar) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*UpdateEnvVar) Icon ¶
func (c *UpdateEnvVar) Icon() string
func (*UpdateEnvVar) Label ¶
func (c *UpdateEnvVar) Label() string
func (*UpdateEnvVar) Name ¶
func (c *UpdateEnvVar) Name() string
func (*UpdateEnvVar) OutputChannels ¶
func (c *UpdateEnvVar) OutputChannels(configuration any) []core.OutputChannel
func (*UpdateEnvVar) ProcessQueueItem ¶
func (c *UpdateEnvVar) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*UpdateEnvVar) Setup ¶
func (c *UpdateEnvVar) Setup(ctx core.SetupContext) error
type UpdateEnvVarConfiguration ¶
type UpdateEnvVarConfiguration struct {
Service string `json:"service" mapstructure:"service"`
Key string `json:"key" mapstructure:"key"`
ValueStrategy string `json:"valueStrategy" mapstructure:"valueStrategy"`
Value *string `json:"value" mapstructure:"value"`
EmitValue bool `json:"emitValue" mapstructure:"emitValue"`
}
type UpdateEnvVarRequest ¶
type UpdateWebhookRequest ¶
type WebhookConfiguration ¶
type WebhookMetadata ¶
type WorkspaceMetadata ¶
Click to show internal directories.
Click to hide internal directories.