types

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptions

type ConfigOptions[T any] interface {
	Initialize(string) error
	Validate() (bool, error)
	Clone() *T
}

ConfigOptions is an interface for configuration options that can be initialized and validated.

type EnvString

type EnvString string

EnvString is a string that should automatically have any environment variable references expanded as it is decoded from YAML. For example, if the YAML contains

foo: ${BAR}

then the value of foo will be the value of the BAR environment variable.

func (*EnvString) Unmarshal

func (s *EnvString) Unmarshal(data []byte) error

type EnvStringMap

type EnvStringMap map[string]string

EnvStringMap is a map of strings that should automatically expand environment variables as it is decoded from YAML (like EnvString).

func (*EnvStringMap) Unmarshal

func (s *EnvStringMap) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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