config

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Keys = struct {
	Home     string
	Tmpdir   string
	LogLevel string
}{
	Home:     "home",
	Tmpdir:   "tmpdir",
	LogLevel: "loglevel",
}

Keys makes yaml serialization keys for Data fields available without reflection.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config represents global config for Thelma

func New

func New(data Data) *Config

New constructs a new config

func (*Config) Home

func (cfg *Config) Home() string

Home is the path to a terra-helmfile clone

func (*Config) LogLevel

func (cfg *Config) LogLevel() string

LogLevel is the level at which Thelma should log

func (*Config) Tmpdir

func (cfg *Config) Tmpdir() string

Tmpdir directory where Thelma should create temporary files

type Data

type Data struct {
	Home     string `yaml:"home"`
	Tmpdir   string `yaml:"tmpdir"`
	LogLevel string `yaml:"loglevel"`
}

Data is a mutable, serializable struct for building an immutable Config

Jump to

Keyboard shortcuts

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