exec

package
v1.4.22 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 c.Context,
) (string, error)

BuildTerraformWorkspace builds Terraform workspace

func ExecuteAwsEksUpdateKubeconfig added in v1.4.9

func ExecuteAwsEksUpdateKubeconfig(kubeconfigContext c.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 ExecuteAwsEksUpdateKubeconfigCommand(cmd *cobra.Command, args []string) error

func ExecuteComponentVendorCommandInternal added in v1.4.12

func ExecuteComponentVendorCommandInternal(
	vendorComponentSpec c.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

func ExecuteDescribeComponent(cmd *cobra.Command, args []string) error

ExecuteDescribeComponent executes `describe component` command

func ExecuteDescribeConfig added in v1.3.4

func ExecuteDescribeConfig(cmd *cobra.Command, args []string) error

ExecuteDescribeConfig executes `describe config` command

func ExecuteDescribeStacks added in v1.4.4

func ExecuteDescribeStacks(cmd *cobra.Command, args []string) error

ExecuteDescribeStacks executes `describe stacks` command

func ExecuteHelmfile

func ExecuteHelmfile(cmd *cobra.Command, args []string) error

ExecuteHelmfile executes helmfile commands

func ExecuteHelmfileGenerateVarfile added in v1.3.30

func ExecuteHelmfileGenerateVarfile(cmd *cobra.Command, args []string) error

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

func ExecuteShellCommands(commands []string, dir string, env []string, dryRun bool) error

ExecuteShellCommands sequentially executes the provided list of commands

func ExecuteStackVendorCommandInternal added in v1.4.12

func ExecuteStackVendorCommandInternal(
	stack string,
	dryRun bool,
	vendorCommand string,
) error

ExecuteStackVendorCommandInternal executes a stack vendor command TODO: implement this

func ExecuteTerraform

func ExecuteTerraform(cmd *cobra.Command, args []string) error

ExecuteTerraform executes terraform commands

func ExecuteTerraformGenerateBackend

func ExecuteTerraformGenerateBackend(cmd *cobra.Command, args []string) error

ExecuteTerraformGenerateBackend executes `terraform generate backend` command

func ExecuteTerraformGenerateVarfile added in v1.3.30

func ExecuteTerraformGenerateVarfile(cmd *cobra.Command, args []string) error

ExecuteTerraformGenerateVarfile executes `terraform generate varfile` command

func ExecuteValidateStacks added in v1.4.13

func ExecuteValidateStacks(cmd *cobra.Command, args []string) error

ExecuteValidateStacks executes `validate stacks` command

func ExecuteVendorCommand added in v1.4.12

func ExecuteVendorCommand(cmd *cobra.Command, args []string, vendorCommand string) error

ExecuteVendorCommand executes `atmos vendor` commands

func ExecuteVendorDiff added in v1.4.12

func ExecuteVendorDiff(cmd *cobra.Command, args []string) error

ExecuteVendorDiff executes `vendor diff` commands

func ExecuteVendorPull added in v1.4.12

func ExecuteVendorPull(cmd *cobra.Command, args []string) error

ExecuteVendorPull executes `vendor pull` commands

func ExecuteWorkflow added in v1.4.0

func ExecuteWorkflow(cmd *cobra.Command, args []string) error

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(configAndStacksInfo c.ConfigAndStacksInfo, checkStack bool) (map[string]any, error)

FindStacksMap processes stack config and returns a map of all stacks

func ProcessStacks added in v1.3.28

func ProcessStacks(configAndStacksInfo c.ConfigAndStacksInfo, checkStack bool) (c.ConfigAndStacksInfo, error)

ProcessStacks processes stack config

func ReadAndProcessComponentConfigFile added in v1.4.12

func ReadAndProcessComponentConfigFile(component string, componentType string) (c.VendorComponentConfig, string, error)

ReadAndProcessComponentConfigFile reads and processes `component.yaml` vendor config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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