config

package
v0.0.0-...-150e33e Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_PATH            = "INPUT_CONFIG_PATH"
	DEFAULT_CONFIG_PATH = "terrapak.hcl"
	ENV_TERRAPAK_KEY    = "INPUT_TERRAPAK_KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Terrapak TerrapakConfig `hcl:"terrapak,block"`
	Modules  []ModuleConfig `hcl:"module,block"`
	Remain   hcl.Body       `hcl:",remain"`
}

func Default

func Default() (config *Config)

func Load

func Load() (config *Config, err error)

type ModuleConfig

type ModuleConfig struct {
	Name      string `hcl:"name,label"`
	Path      string `hcl:"path"`
	Provider  string `hcl:"provider"`
	Namespace string `hcl:"organization,optional"`
	Version   string `hcl:"version"`
}

func (*ModuleConfig) GetNamespace

func (mc *ModuleConfig) GetNamespace(namespace string) string

type TerrapakConfig

type TerrapakConfig struct {
	Hostname  string `hcl:"hostname"`
	Namespace string `hcl:"organization,optional"`
}

Jump to

Keyboard shortcuts

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