vars

package
v16.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Variable

type Variable struct {
	Value       string
	Name        string
	EnvName     string
	Description string
	Merged      bool
}

type Variables

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

func (*Variables) Get

func (vs *Variables) Get(name string) (string, error)

func (*Variables) HasErrors

func (vs *Variables) HasErrors() bool

func (*Variables) IsMerged

func (vs *Variables) IsMerged(name string) bool

func (*Variables) Log

func (vs *Variables) Log(level, name string, format string, args ...interface{})

func (*Variables) Merge

func (vs *Variables) Merge()

func (*Variables) Messages

func (vs *Variables) Messages(logger func(level string, v Variable, message string))

func (*Variables) Overrides

func (vs *Variables) Overrides() []string

func (*Variables) Register

func (vs *Variables) Register(val value.Value, name, envName string, envAltNames []string, description string, required, disguise bool)

func (*Variables) ResetLogs

func (vs *Variables) ResetLogs()

func (*Variables) Set

func (vs *Variables) Set(name, val string) error

func (*Variables) SetDefault

func (vs *Variables) SetDefault(name string)

func (*Variables) Transfer

func (vs *Variables) Transfer(vss *Variables)

func (*Variables) Validate

func (vs *Variables) Validate()

Jump to

Keyboard shortcuts

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