config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorralPath

func CorralPath(name string) string

func CorralRoot

func CorralRoot(parts ...string) string

func InitializeRootPath

func InitializeRootPath(path string)

func Install

func Install() error

func NewTerraform

func NewTerraform(modulePath, version string) (*tfexec.Terraform, error)

Types

type Config

type Config struct {
	UserID            string `yaml:"user_id"`
	UserPublicKeyPath string `yaml:"user_public_key_path"`

	Version string `yaml:"version"`

	Vars map[string]any `yaml:"vars"`
}

func Load

func Load() (Config, error)

func MustLoad

func MustLoad() Config

func (*Config) Save

func (c *Config) Save() (err error)

Jump to

Keyboard shortcuts

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