config

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 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 Env

type Env struct {
	DataPlaneConfigMapNamespace string `required:"true" split_words:"true"`
	DataPlaneConfigMapName      string `required:"true" split_words:"true"`
	GeneralConfigMapName        string `required:"true" split_words:"true"`
	IngressName                 string `required:"true" split_words:"true"`
	SystemNamespace             string `required:"true" split_words:"true"`
	DataPlaneConfigFormat       string `required:"true" split_words:"true"`
	DefaultBackoffDelayMs       uint64 `required:"false" split_words:"true"`
}

func GetEnvConfig

func GetEnvConfig(prefix string, validations ...ValidationOption) (*Env, error)

func (*Env) DataPlaneConfigMapAsString

func (c *Env) DataPlaneConfigMapAsString() string

type ValidationOption added in v0.19.0

type ValidationOption func(env Env) error

ValidationOption represents a function to validate the Env configurations.

Jump to

Keyboard shortcuts

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