config

package
v0.0.0-...-a193200 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppSpec app.Spec `yaml:"spec" envconfig:"SPEC"`
	OpsSpec ops.Spec `yaml:"ops,omitempty" envconfig:"OPS"`
}

Config defines the configuration for the application.

func Load

func Load() (*Config, error)

Load returns the compiled and validated config from file, env and flags.

func (*Config) Validate

func (s *Config) Validate() error

Validate checks that the values defined in the config are valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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