config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MPL-2.0 Imports: 8 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 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"`
}

func LoadConfig

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

type LocalBackend

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

type ProviderHcloud

type ProviderHcloud struct {
	Token        string `yaml:"token"`
	Endpoint     string `yaml:"endpoint,omitempty"`
	PollInterval string `yaml:"poll-interval,omitempty"`
	PollFunction string `yaml:"poll-function,omitempty"`
}

type Terraform

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

type TerraformBackend

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

type TerraformProvider

type TerraformProvider struct {
	Hcloud *ProviderHcloud `yaml:"hcloud,omitempty"`
}

Jump to

Keyboard shortcuts

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