config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigValidator

func ConfigValidator(workdir string, cfg *Config) error

ConfigValidator validates the configuration file and returns an error if TFvars or Backend file does not exist

Types

type Config

type Config struct {
	Stacks []Stack `yaml:"stacks" json:"stacks"`
}

func ConfigGenerator

func ConfigGenerator(workdir string) (*Config, error)

ConfigGenerator creates a stack for each directory that contains .tf files

func ConfigLoader

func ConfigLoader(workdir, configPath string) (*Config, error)

ConfigLoader loads the configuration file and returns a Config struct

type Stack

type Stack struct {
	Name    string `yaml:"name" json:"name"`
	Path    string `yaml:"path" json:"path"`
	TFvars  string `yaml:"tfvars,omitempty" json:"tfvars,omitempty"`
	Backend string `yaml:"backend,omitempty" json:"backend,omitempty"`
}

Jump to

Keyboard shortcuts

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