Documentation ¶
Index ¶
- func BuildTerraformWorkspace(stack string, stackNamePattern string, componentMetadata map[any]any, ...) (string, error)
- func ExecuteAtlantisGenerateRepoConfig(cliConfig cfg.CliConfiguration, outputPath string, configTemplateName string, ...) error
- func ExecuteAtlantisGenerateRepoConfigCmd(cmd *cobra.Command, args []string) error
- func ExecuteAwsEksUpdateKubeconfig(kubeconfigContext cfg.AwsEksUpdateKubeconfigContext) error
- func ExecuteAwsEksUpdateKubeconfigCommand(cmd *cobra.Command, args []string) error
- func ExecuteComponentVendorCommandInternal(vendorComponentSpec cfg.VendorComponentSpec, component string, ...) error
- func ExecuteDescribeComponent(cmd *cobra.Command, args []string) error
- func ExecuteDescribeConfig(cmd *cobra.Command, args []string) error
- func ExecuteDescribeStacks(cmd *cobra.Command, args []string) error
- func ExecuteHelmfile(cmd *cobra.Command, args []string) error
- func ExecuteHelmfileGenerateVarfile(cmd *cobra.Command, args []string) error
- func ExecuteShellCommand(command string, args []string, dir string, env []string, dryRun bool) error
- func ExecuteShellCommandAndReturnOutput(command string, args []string, dir string, env []string, dryRun bool) (string, error)
- func ExecuteShellCommands(commands []string, dir string, env []string, dryRun bool) error
- func ExecuteStackVendorCommandInternal(stack string, dryRun bool, vendorCommand string) error
- func ExecuteTerraform(cmd *cobra.Command, args []string) error
- func ExecuteTerraformGenerateBackend(cmd *cobra.Command, args []string) error
- func ExecuteTerraformGenerateBackends(cliConfig cfg.CliConfiguration, format string) error
- func ExecuteTerraformGenerateBackendsCmd(cmd *cobra.Command, args []string) error
- func ExecuteTerraformGenerateVarfile(cmd *cobra.Command, args []string) error
- func ExecuteTerraformGenerateVarfiles(cliConfig cfg.CliConfiguration, fileTemplate string, format string, ...) error
- func ExecuteTerraformGenerateVarfilesCmd(cmd *cobra.Command, args []string) error
- func ExecuteValidateComponent(cliConfig cfg.CliConfiguration, componentName string, stack string, ...) (bool, error)
- func ExecuteValidateComponentCmd(cmd *cobra.Command, args []string) error
- func ExecuteValidateStacks(cmd *cobra.Command, args []string) error
- func ExecuteVendorCommand(cmd *cobra.Command, args []string, vendorCommand string) error
- func ExecuteVendorDiff(cmd *cobra.Command, args []string) error
- func ExecuteVendorPull(cmd *cobra.Command, args []string) error
- func ExecuteWorkflow(cmd *cobra.Command, args []string) error
- func FindComponentConfig(stack string, stacksMap map[string]any, componentType string, component string) (map[string]any, map[any]any, map[any]any, map[any]any, string, string, string, ...)
- func FindStacksMap(cliConfig cfg.CliConfiguration) (map[string]any, error)
- func FindValidationSection(componentSection map[string]any) (cfg.Validation, error)
- func ProcessComponentMetadata(component string, componentSection map[string]any) (map[any]any, string, bool)
- func ProcessStacks(cliConfig cfg.CliConfiguration, configAndStacksInfo cfg.ConfigAndStacksInfo, ...) (cfg.ConfigAndStacksInfo, error)
- func ReadAndProcessComponentConfigFile(cliConfig cfg.CliConfiguration, component string, componentType string) (cfg.VendorComponentConfig, string, error)
- func ValidateComponent(cliConfig cfg.CliConfiguration, componentName string, componentSection any, ...) (bool, error)
- func ValidateWithCue(data any, schemaName string, schemaText string) (bool, error)
- func ValidateWithJsonSchema(data any, schemaName string, schemaText string) (bool, error)
- func ValidateWithOpa(data any, schemaName string, schemaText string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTerraformWorkspace ¶ added in v1.4.8
func BuildTerraformWorkspace( stack string, stackNamePattern string, componentMetadata map[any]any, context cfg.Context, ) (string, error)
BuildTerraformWorkspace builds Terraform workspace
func ExecuteAtlantisGenerateRepoConfig ¶ added in v1.5.0
func ExecuteAtlantisGenerateRepoConfig( cliConfig cfg.CliConfiguration, outputPath string, configTemplateName string, projectTemplateName string, workflowTemplateName string, stacks []string, components []string) error
ExecuteAtlantisGenerateRepoConfig generates repository configuration for Atlantis
func ExecuteAtlantisGenerateRepoConfigCmd ¶ added in v1.5.0
ExecuteAtlantisGenerateRepoConfigCmd executes `atlantis generate repo-config` command
func ExecuteAwsEksUpdateKubeconfig ¶ added in v1.4.9
func ExecuteAwsEksUpdateKubeconfig(kubeconfigContext cfg.AwsEksUpdateKubeconfigContext) error
ExecuteAwsEksUpdateKubeconfig executes 'aws eks update-kubeconfig' https://docs.aws.amazon.com/cli/latest/reference/eks/update-kubeconfig.html
func ExecuteAwsEksUpdateKubeconfigCommand ¶ added in v1.4.9
func ExecuteComponentVendorCommandInternal ¶ added in v1.4.12
func ExecuteComponentVendorCommandInternal( vendorComponentSpec cfg.VendorComponentSpec, component string, componentPath string, dryRun bool, vendorCommand string, ) error
ExecuteComponentVendorCommandInternal executes a component vendor command Supports all protocols (local files, Git, Mercurial, HTTP, HTTPS, Amazon S3, Google GCP), URL and archive formats described in https://github.com/hashicorp/go-getter https://www.allee.xyz/en/posts/getting-started-with-go-getter https://github.com/otiai10/copy
func ExecuteDescribeComponent ¶
ExecuteDescribeComponent executes `describe component` command
func ExecuteDescribeConfig ¶ added in v1.3.4
ExecuteDescribeConfig executes `describe config` command
func ExecuteDescribeStacks ¶ added in v1.4.4
ExecuteDescribeStacks executes `describe stacks` command
func ExecuteHelmfile ¶
ExecuteHelmfile executes helmfile commands
func ExecuteHelmfileGenerateVarfile ¶ added in v1.3.30
ExecuteHelmfileGenerateVarfile executes `helmfile generate varfile` command
func ExecuteShellCommand ¶ added in v1.4.9
func ExecuteShellCommand(command string, args []string, dir string, env []string, dryRun bool) error
ExecuteShellCommand prints and executes the provided command with args and flags
func ExecuteShellCommandAndReturnOutput ¶ added in v1.4.22
func ExecuteShellCommandAndReturnOutput(command string, args []string, dir string, env []string, dryRun bool) (string, error)
ExecuteShellCommandAndReturnOutput prints and executes the provided command with args and flags and returns the command output
func ExecuteShellCommands ¶ added in v1.4.22
ExecuteShellCommands sequentially executes the provided list of commands
func ExecuteStackVendorCommandInternal ¶ added in v1.4.12
ExecuteStackVendorCommandInternal executes a stack vendor command TODO: implement this
func ExecuteTerraform ¶
ExecuteTerraform executes terraform commands
func ExecuteTerraformGenerateBackend ¶
ExecuteTerraformGenerateBackend executes `terraform generate backend` command
func ExecuteTerraformGenerateBackends ¶
func ExecuteTerraformGenerateBackends(cliConfig cfg.CliConfiguration, format string) error
ExecuteTerraformGenerateBackends generates backend configs for all terraform components
func ExecuteTerraformGenerateBackendsCmd ¶ added in v1.7.0
ExecuteTerraformGenerateBackendsCmd executes `terraform generate backends` command
func ExecuteTerraformGenerateVarfile ¶ added in v1.3.30
ExecuteTerraformGenerateVarfile executes `terraform generate varfile` command
func ExecuteTerraformGenerateVarfiles ¶ added in v1.5.0
func ExecuteTerraformGenerateVarfiles(cliConfig cfg.CliConfiguration, fileTemplate string, format string, stacks []string, components []string) error
ExecuteTerraformGenerateVarfiles generates varfiles for all terraform components in all stacks
func ExecuteTerraformGenerateVarfilesCmd ¶ added in v1.5.0
ExecuteTerraformGenerateVarfilesCmd executes `terraform generate varfiles` command
func ExecuteValidateComponent ¶ added in v1.9.0
func ExecuteValidateComponent(cliConfig cfg.CliConfiguration, componentName string, stack string, schemaPath string, schemaType string) (bool, error)
ExecuteValidateComponent validates a component in a stack using JsonSchema, OPA or CUE schema documents
func ExecuteValidateComponentCmd ¶ added in v1.9.0
ExecuteValidateComponentCmd executes `validate component` command
func ExecuteValidateStacks ¶ added in v1.4.13
ExecuteValidateStacks executes `validate stacks` command
func ExecuteVendorCommand ¶ added in v1.4.12
ExecuteVendorCommand executes `atmos vendor` commands
func ExecuteVendorDiff ¶ added in v1.4.12
ExecuteVendorDiff executes `vendor diff` commands
func ExecuteVendorPull ¶ added in v1.4.12
ExecuteVendorPull executes `vendor pull` commands
func ExecuteWorkflow ¶ added in v1.4.0
ExecuteWorkflow executes a workflow
func FindComponentConfig ¶ added in v1.3.28
func FindComponentConfig( stack string, stacksMap map[string]any, componentType string, component string, ) (map[string]any, map[any]any, map[any]any, map[any]any, string, string, string, []string, bool, map[any]any, error, )
FindComponentConfig finds component config sections
func FindStacksMap ¶ added in v1.4.4
func FindStacksMap(cliConfig cfg.CliConfiguration) (map[string]any, error)
FindStacksMap processes stack config and returns a map of all stacks
func FindValidationSection ¶ added in v1.9.0
func FindValidationSection(componentSection map[string]any) (cfg.Validation, error)
FindValidationSection finds 'validation' section in the component config
func ProcessComponentMetadata ¶ added in v1.8.0
func ProcessComponentMetadata( component string, componentSection map[string]any, ) (map[any]any, string, bool)
ProcessComponentMetadata processes component metadata and returns a base component (if any) and whether the component is real or abstract
func ProcessStacks ¶ added in v1.3.28
func ProcessStacks(cliConfig cfg.CliConfiguration, configAndStacksInfo cfg.ConfigAndStacksInfo, checkStack bool) (cfg.ConfigAndStacksInfo, error)
ProcessStacks processes stack config
func ReadAndProcessComponentConfigFile ¶ added in v1.4.12
func ReadAndProcessComponentConfigFile(cliConfig cfg.CliConfiguration, component string, componentType string) (cfg.VendorComponentConfig, string, error)
ReadAndProcessComponentConfigFile reads and processes `component.yaml` vendor config file
func ValidateComponent ¶ added in v1.9.0
func ValidateComponent(cliConfig cfg.CliConfiguration, componentName string, componentSection any, schemaPath string, schemaType string) (bool, error)
ValidateComponent validates the component config using JsonSchema, OPA or CUE schema documents
func ValidateWithCue ¶ added in v1.9.0
ValidateWithCue validates the data structure using the provided CUE document https://cuelang.org/docs/integrations/go/#processing-cue-in-go
func ValidateWithJsonSchema ¶ added in v1.9.0
ValidateWithJsonSchema validates the data structure using the provided JSON Schema document https://github.com/santhosh-tekuri/jsonschema https://go.dev/play/p/Hhax3MrtD8r
func ValidateWithOpa ¶ added in v1.9.0
ValidateWithOpa validates the data structure using the provided OPA document https://www.openpolicyagent.org/docs/latest/integration/#sdk
Types ¶
This section is empty.
Source Files ¶
- atlantis_generate_repo_config.go
- aws_eks_update_kubeconfig.go
- describe_component.go
- describe_config.go
- describe_stacks.go
- helmfile.go
- helmfile_generate_varfile.go
- help.go
- path_utils.go
- shell_utils.go
- stack_utils.go
- terraform.go
- terraform_generate_backend.go
- terraform_generate_backends.go
- terraform_generate_varfile.go
- terraform_generate_varfiles.go
- terraform_utils.go
- utils.go
- validate_component.go
- validate_stacks.go
- validate_utils.go
- vendor.go
- vendor_utils.go
- worflow.go
- worflow_utils.go