config

package
v0.0.0-...-b894158 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	TargetRegistry string `env:"TARGET_REGISTRY" envDefault:"index.docker.io"`
	UserName       string `env:"USERNAME"`
	Password       string `env:"PASSWORD"`
}

Conf is the application config object

var Config Conf

func (*Conf) Register

func (*Conf) Register() error

Register will be called for config registration from env variables

func (*Conf) Validate

func (*Conf) Validate() (err error)

Validate validates the configs

Jump to

Keyboard shortcuts

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