render

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 APIError

type APIError struct {
	StatusCode int
	Body       string
}

func (*APIError) Error

func (e *APIError) Error() string

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 CancelDeployConfiguration

type CancelDeployConfiguration struct {
	Service  string `json:"service" mapstructure:"service"`
	DeployID string `json:"deployId" mapstructure:"deployId"`
}

type Client

type Client struct {
	APIKey  string
	BaseURL string
	// contains filtered or unexported fields
}

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 (c *Client) DeleteWebhook(webhookID string) error

func (*Client) GetDeploy

func (c *Client) GetDeploy(serviceID string, deployID string) (DeployResponse, error)

func (*Client) GetEvent

func (c *Client) GetEvent(eventID string) (EventResponse, error)

func (*Client) GetService

func (c *Client) GetService(serviceID string) (Service, error)

func (*Client) GetWebhook

func (c *Client) GetWebhook(webhookID string) (*Webhook, error)

func (*Client) ListServices

func (c *Client) ListServices(workspaceID string) ([]Service, error)

func (*Client) ListWebhooks

func (c *Client) ListWebhooks(workspaceID string) ([]Webhook, error)

func (*Client) ListWorkspaces

func (c *Client) ListWorkspaces() ([]Workspace, error)

func (*Client) PurgeCache

func (c *Client) PurgeCache(serviceID string) error

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 (c *Client) UpdateEnvVar(serviceID string, key string, request UpdateEnvVarRequest) (EnvVar, error)

func (*Client) UpdateWebhook

func (c *Client) UpdateWebhook(webhookID string, request UpdateWebhookRequest) (*Webhook, error)

func (*Client) Verify

func (c *Client) Verify() error

type Configuration

type Configuration struct {
	APIKey        string `json:"apiKey" mapstructure:"apiKey"`
	Workspace     string `json:"workspace" mapstructure:"workspace"`
	WorkspacePlan string `json:"workspacePlan" mapstructure:"workspacePlan"`
}

type CreateWebhookRequest

type CreateWebhookRequest struct {
	WorkspaceID string   `json:"ownerId"`
	Name        string   `json:"name"`
	URL         string   `json:"url"`
	Enabled     bool     `json:"enabled"`
	EventFilter []string `json:"eventFilter"`
}

type Deploy

type Deploy struct{}

func (*Deploy) Actions

func (c *Deploy) Actions() []core.Action

func (*Deploy) Cancel

func (c *Deploy) Cancel(ctx core.ExecutionContext) error

func (*Deploy) Cleanup

func (c *Deploy) Cleanup(ctx core.SetupContext) error

func (*Deploy) Color

func (c *Deploy) Color() string

func (*Deploy) Configuration

func (c *Deploy) Configuration() []configuration.Field

func (*Deploy) Description

func (c *Deploy) Description() string

func (*Deploy) Documentation

func (c *Deploy) Documentation() string

func (*Deploy) ExampleOutput

func (c *Deploy) ExampleOutput() map[string]any

func (*Deploy) Execute

func (c *Deploy) Execute(ctx core.ExecutionContext) error

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) Icon

func (c *Deploy) Icon() string

func (*Deploy) Label

func (c *Deploy) Label() string

func (*Deploy) Name

func (c *Deploy) Name() string

func (*Deploy) OutputChannels

func (c *Deploy) OutputChannels(configuration any) []core.OutputChannel

func (*Deploy) ProcessQueueItem

func (c *Deploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*Deploy) Setup

func (c *Deploy) Setup(ctx core.SetupContext) error

type DeployCommit

type DeployCommit struct {
	ID        string `json:"id,omitempty"`
	Message   string `json:"message,omitempty"`
	CreatedAt string `json:"createdAt,omitempty"`
}

type DeployConfiguration

type DeployConfiguration struct {
	Service    string `json:"service" mapstructure:"service"`
	ClearCache bool   `json:"clearCache" mapstructure:"clearCache"`
}

type DeployExecutionMetadata

type DeployExecutionMetadata struct {
	Deploy *DeployMetadata `json:"deploy" mapstructure:"deploy"`
}

type DeployImage

type DeployImage struct {
	Ref                string `json:"ref,omitempty"`
	SHA                string `json:"sha,omitempty"`
	RegistryCredential string `json:"registryCredential,omitempty"`
}

type DeployMetadata

type DeployMetadata struct {
	ID                 string `json:"id"`
	Status             string `json:"status"`
	ServiceID          string `json:"serviceId"`
	CreatedAt          string `json:"createdAt"`
	FinishedAt         string `json:"finishedAt"`
	RollbackToDeployID string `json:"rollbackToDeployId,omitempty"`
}

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 EnvVar

type EnvVar struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type EventBuildResponseDetails

type EventBuildResponseDetails struct {
	BuildID string `json:"buildId"`
}

type EventDeployResponseDetails

type EventDeployResponseDetails struct {
	DeployID string `json:"deployId"`
}

type EventDetailValues

type EventDetailValues struct {
	DeployID string
	BuildID  string
}

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) Actions

func (c *GetDeploy) Actions() []core.Action

func (*GetDeploy) Cancel

func (c *GetDeploy) Cancel(ctx core.ExecutionContext) error

func (*GetDeploy) Cleanup

func (c *GetDeploy) Cleanup(ctx core.SetupContext) error

func (*GetDeploy) Color

func (c *GetDeploy) Color() string

func (*GetDeploy) Configuration

func (c *GetDeploy) Configuration() []configuration.Field

func (*GetDeploy) Description

func (c *GetDeploy) Description() string

func (*GetDeploy) Documentation

func (c *GetDeploy) Documentation() string

func (*GetDeploy) ExampleOutput

func (c *GetDeploy) ExampleOutput() map[string]any

func (*GetDeploy) Execute

func (c *GetDeploy) Execute(ctx core.ExecutionContext) error

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) Icon

func (c *GetDeploy) Icon() string

func (*GetDeploy) Label

func (c *GetDeploy) Label() string

func (*GetDeploy) Name

func (c *GetDeploy) Name() string

func (*GetDeploy) OutputChannels

func (c *GetDeploy) OutputChannels(configuration any) []core.OutputChannel

func (*GetDeploy) ProcessQueueItem

func (c *GetDeploy) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*GetDeploy) Setup

func (c *GetDeploy) Setup(ctx core.SetupContext) error

type GetDeployConfiguration

type GetDeployConfiguration struct {
	Service  string `json:"service" mapstructure:"service"`
	DeployID string `json:"deployId" mapstructure:"deployId"`
}

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) Actions

func (t *OnBuild) Actions() []core.Action

func (*OnBuild) Cleanup

func (t *OnBuild) Cleanup(ctx core.TriggerContext) error

func (*OnBuild) Color

func (t *OnBuild) Color() string

func (*OnBuild) Configuration

func (t *OnBuild) Configuration() []configuration.Field

func (*OnBuild) Description

func (t *OnBuild) Description() string

func (*OnBuild) Documentation

func (t *OnBuild) Documentation() string

func (*OnBuild) ExampleData

func (t *OnBuild) ExampleData() map[string]any

func (*OnBuild) HandleAction

func (t *OnBuild) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnBuild) HandleWebhook

func (t *OnBuild) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnBuild) Icon

func (t *OnBuild) Icon() string

func (*OnBuild) Label

func (t *OnBuild) Label() string

func (*OnBuild) Name

func (t *OnBuild) Name() string

func (*OnBuild) Setup

func (t *OnBuild) Setup(ctx core.TriggerContext) error

type OnDeploy

type OnDeploy struct{}

func (*OnDeploy) Actions

func (t *OnDeploy) Actions() []core.Action

func (*OnDeploy) Cleanup

func (t *OnDeploy) Cleanup(ctx core.TriggerContext) error

func (*OnDeploy) Color

func (t *OnDeploy) Color() string

func (*OnDeploy) Configuration

func (t *OnDeploy) Configuration() []configuration.Field

func (*OnDeploy) Description

func (t *OnDeploy) Description() string

func (*OnDeploy) Documentation

func (t *OnDeploy) Documentation() string

func (*OnDeploy) ExampleData

func (t *OnDeploy) ExampleData() map[string]any

func (*OnDeploy) HandleAction

func (t *OnDeploy) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnDeploy) HandleWebhook

func (t *OnDeploy) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnDeploy) Icon

func (t *OnDeploy) Icon() string

func (*OnDeploy) Label

func (t *OnDeploy) Label() string

func (*OnDeploy) Name

func (t *OnDeploy) Name() string

func (*OnDeploy) Setup

func (t *OnDeploy) Setup(ctx core.TriggerContext) error

type OnResourceEventConfiguration

type OnResourceEventConfiguration struct {
	Service    string   `json:"service" mapstructure:"service"`
	EventTypes []string `json:"eventTypes" mapstructure:"eventTypes"`
}

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) Actions

func (r *Render) Actions() []core.Action

func (*Render) Cleanup

func (r *Render) Cleanup(ctx core.IntegrationCleanupContext) error

func (*Render) Components

func (r *Render) Components() []core.Component

func (*Render) Configuration

func (r *Render) Configuration() []configuration.Field

func (*Render) Description

func (r *Render) Description() string

func (*Render) HandleAction

func (r *Render) HandleAction(ctx core.IntegrationActionContext) error

func (*Render) HandleRequest

func (r *Render) HandleRequest(ctx core.HTTPRequestContext)

func (*Render) Icon

func (r *Render) Icon() string

func (*Render) Instructions

func (r *Render) Instructions() string

func (*Render) Label

func (r *Render) Label() string

func (*Render) ListResources

func (r *Render) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)

func (*Render) Name

func (r *Render) Name() string

func (*Render) Sync

func (r *Render) Sync(ctx core.SyncContext) error

func (*Render) Triggers

func (r *Render) Triggers() []core.Trigger

type RenderWebhookHandler

type RenderWebhookHandler struct{}

func (*RenderWebhookHandler) Cleanup

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

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 RollbackDeployConfiguration

type RollbackDeployConfiguration struct {
	Service            string `json:"service" mapstructure:"service"`
	RollbackToDeployID string `json:"deployId" mapstructure:"deployId"`
}

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 ServiceMetadata struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

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 UpdateEnvVarRequest struct {
	Value         *string `json:"value,omitempty"`
	GenerateValue *bool   `json:"generateValue,omitempty"`
}

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	Name        string   `json:"name,omitempty"`
	URL         string   `json:"url,omitempty"`
	Enabled     bool     `json:"enabled"`
	EventFilter []string `json:"eventFilter,omitempty"`
}

type Webhook

type Webhook struct {
	ID          string   `json:"id"`
	WorkspaceID string   `json:"ownerId"`
	Name        string   `json:"name"`
	URL         string   `json:"url"`
	Enabled     bool     `json:"enabled"`
	EventFilter []string `json:"eventFilter"`
	Secret      string   `json:"secret"`
}

type WebhookConfiguration

type WebhookConfiguration struct {
	Strategy     string   `json:"strategy" mapstructure:"strategy"`
	ResourceType string   `json:"resourceType,omitempty" mapstructure:"resourceType"`
	EventTypes   []string `json:"eventTypes,omitempty" mapstructure:"eventTypes"`
}

type WebhookMetadata

type WebhookMetadata struct {
	WebhookID   string `json:"webhookId" mapstructure:"webhookId"`
	WorkspaceID string `json:"workspaceId" mapstructure:"workspaceId"`
}

type Workspace

type Workspace struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type WorkspaceMetadata

type WorkspaceMetadata struct {
	ID   string `json:"id" mapstructure:"id"`
	Plan string `json:"plan" mapstructure:"plan"`
}

Jump to

Keyboard shortcuts

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