validation

package
v0.19.913 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MinTerraformVersion = "1.8.0"

Variables

This section is empty.

Functions

func ValidateBuildTimeout

func ValidateBuildTimeout(timeout string) error

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

func ValidateCronSchedule(cronExpr string) error

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

func ValidateDNSName(name string, minLen, maxLen int) error

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

func ValidateDeployTimeout(timeout string) error

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

func ValidateEntityName(name string) error

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

func ValidateInterpolatedName(name string) error

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

func ValidateMaxAutoRetries(maxAutoRetries int) error

ValidateMaxAutoRetries validates a max auto retries value.

func ValidateTerraformMinVersion

func ValidateTerraformMinVersion(version string) error

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

func ValidateTerraformVersion(version string, minVersion string, maxVersion string) error

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.

Jump to

Keyboard shortcuts

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