Documentation
¶
Index ¶
- Constants
- func PreloadComponentBuildConfig(db *gorm.DB) *gorm.DB
- func PreloadLatestConfig(db *gorm.DB) *gorm.DB
- type ComponentQueueIDs
- type CreateComponentParams
- type Helpers
- func (h *Helpers) ClearComponentDependencies(ctx context.Context, compID string) error
- func (h *Helpers) CreateComponent(ctx context.Context, params *CreateComponentParams) (*app.Component, error)
- func (s *Helpers) CreateComponentBuild(ctx context.Context, cmpID string, useLatest bool, gitRef *string) (*app.ComponentBuild, error)
- func (h *Helpers) CreateComponentDependencies(ctx context.Context, compID string, dependencyIDs []string) error
- func (h *Helpers) EnsureComponentQueues(ctx context.Context, componentID string) (*ComponentQueueIDs, error)
- func (h *Helpers) EnsureInstallComponents(ctx context.Context, appID string, installIDs []string) error
- func (s *Helpers) GetComponent(ctx context.Context, cmpID string) (*app.Component, error)
- func (s *Helpers) GetComponentByID(ctx context.Context, componentID string) (*app.Component, error)
- func (s *Helpers) GetComponentByName(ctx context.Context, appID, name string) (*app.Component, error)
- func (s *Helpers) GetComponentCommit(ctx context.Context, cmpID string) (*app.VCSConnectionCommit, error)
- func (s *Helpers) GetComponentIDs(ctx context.Context, appID string, comps []string) ([]string, error)
- func (s *Helpers) GetComponentLatestBuilds(ctx context.Context, cmpIDs ...string) ([]app.ComponentBuild, error)
- func (h *Helpers) GetComponentQueueIDs(ctx context.Context, componentID string) (*ComponentQueueIDs, error)
- func (h *Helpers) HelmChartFromICs(ics []app.InstallComponent, helmCmps map[string]bool) []app.HelmChart
- func (h *Helpers) HelmReleaseFromIC(ic app.InstallComponent) app.HelmChart
- func (h *Helpers) TFWorkSpaceFromIC(ic app.InstallComponent) app.TerraformWorkspace
- func (h *Helpers) TFWorkspacesFromICs(ics []app.InstallComponent) []app.TerraformWorkspace
- func (s *Helpers) UpdateComponentType(ctx context.Context, cmpID string, cmpType app.ComponentType) error
- type Params
Constants ¶
View Source
const ( // ComponentWorkflowStepsQueueName is the named queue on each component // where execute-workflow-step signals run for component builds. ComponentWorkflowStepsQueueName = "component-workflow-steps" )
Variables ¶
This section is empty.
Functions ¶
func PreloadComponentBuildConfig ¶
component config connections
Types ¶
type ComponentQueueIDs ¶ added in v0.19.903
type ComponentQueueIDs struct {
DefaultQueueID string `json:"default_queue_id"`
WorkflowStepsQueueID string `json:"workflow_steps_queue_id"`
}
ComponentQueueIDs holds the queue IDs for a component.
type CreateComponentParams ¶ added in v0.19.894
type Helpers ¶
type Helpers struct {
// contains filtered or unexported fields
}
func (*Helpers) ClearComponentDependencies ¶
func (*Helpers) CreateComponent ¶ added in v0.19.894
func (*Helpers) CreateComponentBuild ¶
func (*Helpers) CreateComponentDependencies ¶
func (h *Helpers) CreateComponentDependencies(ctx context.Context, compID string, dependencyIDs []string) error
NOTE: GORM does not support callbacks when using a custom join table on many2many relationships + associations mode, so this is a helper used to create component dependencies
func (*Helpers) EnsureComponentQueues ¶ added in v0.19.903
func (h *Helpers) EnsureComponentQueues(ctx context.Context, componentID string) (*ComponentQueueIDs, error)
EnsureComponentQueues creates all Temporal queue workflows for a component and returns the queue IDs. Safe to call multiple times — Create is idempotent.
func (*Helpers) EnsureInstallComponents ¶
func (*Helpers) GetComponent ¶
func (*Helpers) GetComponentByID ¶ added in v0.19.903
func (*Helpers) GetComponentByName ¶
func (*Helpers) GetComponentCommit ¶
func (s *Helpers) GetComponentCommit(ctx context.Context, cmpID string) (*app.VCSConnectionCommit, error)
GetComponentCommit will return a commit for a component, when a connected git source is attached.
func (*Helpers) GetComponentIDs ¶
func (*Helpers) GetComponentLatestBuilds ¶
func (*Helpers) GetComponentQueueIDs ¶ added in v0.19.903
func (h *Helpers) GetComponentQueueIDs(ctx context.Context, componentID string) (*ComponentQueueIDs, error)
GetComponentQueueIDs looks up existing queue IDs for a component.
func (*Helpers) HelmChartFromICs ¶
func (*Helpers) HelmReleaseFromIC ¶
func (h *Helpers) HelmReleaseFromIC(ic app.InstallComponent) app.HelmChart
func (*Helpers) TFWorkSpaceFromIC ¶
func (h *Helpers) TFWorkSpaceFromIC(ic app.InstallComponent) app.TerraformWorkspace
func (*Helpers) TFWorkspacesFromICs ¶
func (h *Helpers) TFWorkspacesFromICs(ics []app.InstallComponent) []app.TerraformWorkspace
func (*Helpers) UpdateComponentType ¶
Click to show internal directories.
Click to hide internal directories.