config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleConfig added in v0.1.1

type AnsibleConfig struct {
	InventoryFile string `yaml:"inventory-file"`
	PlaybookFile  string `yaml:"playbook-file"`
}

type BackendType

type BackendType string
const (
	Local               BackendType = "local"
	Remote              BackendType = "remote"
	TerraformMinVersion             = "1.9.0"
)

type ConfigVariables added in v0.9.1

type ConfigVariables map[string]map[string]interface{}

type Configuration

type Configuration struct {
	TemplateRepo   string            `yaml:"template-repo,omitempty"`
	TempateVersion string            `yaml:"template-version,omitempty"`
	TemplateDir    string            `yaml:"template-dir,omitempty"`
	Terraform      *Terraform        `yaml:"terraform,omitempty"`
	Ansible        *AnsibleConfig    `yaml:"ansible,omitempty"`
	Variables      ConfigVariables   `yaml:"variables"`
	Tags           map[string]string `yaml:"tags"`
	ProcessingVars map[string]interface{}
}

func LoadConfig

func LoadConfig(path string) (*Configuration, error)

type LocalBackend

type LocalBackend struct {
	Path      string `yaml:"path"`
	Workspace string `yaml:"workspace"`
}

type Terraform

type Terraform struct {
	Backend   *TerraformBackend `yaml:"backend,omitempty"`
	Providers []string          `yaml:"providers"`
}

func (*Terraform) HasProvider added in v0.6.0

func (t *Terraform) HasProvider(name string) bool

type TerraformBackend

type TerraformBackend struct {
	Type  BackendType   `yaml:"type"`
	Local *LocalBackend `yaml:"local,omitempty"`
}

Jump to

Keyboard shortcuts

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