Documentation
¶
Index ¶
- Constants
- func ValidateBuildTimeout(timeout string) error
- func ValidateCronSchedule(cronExpr string) error
- func ValidateDNSName(name string, minLen, maxLen int) error
- func ValidateDeployTimeout(timeout string) error
- func ValidateEntityName(name string) error
- func ValidateInterpolatedName(name string) error
- func ValidateMaxAutoRetries(maxAutoRetries int) error
- func ValidateTerraformMinVersion(version string) error
- func ValidateTerraformVersion(version string, minVersion string, maxVersion string) error
Constants ¶
const MinTerraformVersion = "1.8.0"
Variables ¶
This section is empty.
Functions ¶
func ValidateBuildTimeout ¶
ValidateBuildTimeout validates a build timeout duration string. Returns an error if the format is invalid or the value is out of range. Duplicates logic from services/ctl-api/internal/app/components/service/shared_validation.go
func ValidateCronSchedule ¶
ValidateCronSchedule validates a cron expression string. Returns an error if the cron expression is invalid. Duplicates logic from services/ctl-api/internal/pkg/validator/cron_schedule.go
func ValidateDNSName ¶
ValidateDNSName validates a DNS RFC 1035 label (used for Helm chart names, K8s resources, etc). Must be 1-63 characters, start with a letter, and contain only lowercase letters, numbers, and hyphens.
func ValidateDeployTimeout ¶
ValidateDeployTimeout validates a deploy timeout duration string. Returns an error if the format is invalid or the value is out of range. Duplicates logic from services/ctl-api/internal/app/components/service/shared_validation.go
func ValidateEntityName ¶
ValidateEntityName validates a standard entity name. Allows: lowercase letters, numbers, underscores, and hyphens Duplicates logic from services/ctl-api/internal/pkg/validator/entity_name.go
func ValidateInterpolatedName ¶
ValidateInterpolatedName validates a name that allows interpolation syntax. Allows: lowercase letters, numbers, underscores, dots, and curly braces Duplicates logic from services/ctl-api/internal/pkg/validator/interpolated_name.go
func ValidateMaxAutoRetries ¶ added in v0.19.894
ValidateMaxAutoRetries validates a max auto retries value.
func ValidateTerraformMinVersion ¶
ValidateTerraformMinVersion validates a Terraform version string against only the minimum constraint. Used by the DB syncer which does not have access to tfClient.GetLatestVersion() for the upper bound.
func ValidateTerraformVersion ¶
ValidateTerraformVersion validates a Terraform version string against min/max constraints. Duplicates logic from services/ctl-api/internal/app/components/service/create_terraform_module_component_config.go
Types ¶
This section is empty.