Documentation
¶
Index ¶
- func EnsureComponent(ctx context.Context, db *gorm.DB, helpers *componenthelpers.Helpers, ...) error
- func SyncComponent(ctx context.Context, db *gorm.DB, comp *config.Component, ...) error
- func SyncDockerBuildComponent(ctx context.Context, db *gorm.DB, comp *config.Component, ...) (string, string, error)
- func SyncHelmComponent(ctx context.Context, db *gorm.DB, comp *config.Component, ...) (string, string, error)
- func SyncKubernetesManifestComponent(ctx context.Context, db *gorm.DB, comp *config.Component, ...) (string, string, error)
- func SyncTerraformModuleComponent(ctx context.Context, db *gorm.DB, comp *config.Component, ...) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureComponent ¶
func EnsureComponent(ctx context.Context, db *gorm.DB, helpers *componenthelpers.Helpers, comp *config.Component, appID string) error
EnsureComponent creates a component if it doesn't exist, using the shared helpers for full initialization (queue creation, dependencies, install components).
func SyncComponent ¶
func SyncComponent(ctx context.Context, db *gorm.DB, comp *config.Component, appID, appConfigID string, state *sync.State) error
SyncComponent updates a component and creates its configuration based on type.
func SyncDockerBuildComponent ¶
func SyncDockerBuildComponent(ctx context.Context, db *gorm.DB, comp *config.Component, componentID, appID, appConfigID string) (string, string, error)
SyncDockerBuildComponent creates or updates a Docker build component configuration. Duplicates logic from services/ctl-api/internal/app/components/service/create_docker_build_component_config.go
func SyncHelmComponent ¶
func SyncHelmComponent(ctx context.Context, db *gorm.DB, comp *config.Component, componentID, appID, appConfigID string) (string, string, error)
SyncHelmComponent creates or updates a Helm component configuration. Duplicates logic from services/ctl-api/internal/app/components/service/create_helm_component_config.go
func SyncKubernetesManifestComponent ¶ added in v0.19.866
func SyncKubernetesManifestComponent(ctx context.Context, db *gorm.DB, comp *config.Component, componentID, appID, appConfigID string) (string, string, error)
SyncKubernetesManifestComponent creates or updates a Kubernetes manifest component configuration.
func SyncTerraformModuleComponent ¶
func SyncTerraformModuleComponent(ctx context.Context, db *gorm.DB, comp *config.Component, componentID, appID, appConfigID string) (string, string, error)
SyncTerraformModuleComponent creates or updates a Terraform module component configuration. Duplicates logic from services/ctl-api/internal/app/components/service/create_terraform_module_component_config.go
Types ¶
This section is empty.