config

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvVarCLImage            = "CHAINLINK_IMAGE"
	EnvVarCLImageDescription = "Chainlink image repository"
	EnvVarCLImageExample     = "public.ecr.aws/chainlink/chainlink"

	EnvVarCLTag            = "CHAINLINK_VERSION"
	EnvVarCLTagDescription = "Chainlink image tag"
	EnvVarCLTagExample     = "1.4.0-root"

	EnvVarUser            = "CHAINLINK_ENV_USER"
	EnvVarUserDescription = "Owner of an environment"
	EnvVarUserExample     = "Satoshi"

	EnvVarLogLevel            = "LOG_LEVEL"
	EnvVarLogLevelDescription = "Environment logging level"
	EnvVarLogLevelExample     = "info | debug | trace"

	EnvVarNetworksConfigFile            = "NETWORKS_CONFIG_FILE"
	EnvVarNetworksConfigFileDescription = "Blockchain networks connection info"
	EnvVarNetworksConfigFileExample     = "networks.yaml"
)

Variables

This section is empty.

Functions

func MustEnvCodeOverrideMap added in v0.2.3

func MustEnvCodeOverrideMap(envVarName string, target, src interface{})

MustEnvCodeOverrideMap used when overriding helm charts both from env and code

func MustEnvCodeOverrideStruct

func MustEnvCodeOverrideStruct(envPrefix string, targetVars interface{}, codeVars interface{})

MustEnvCodeOverrideStruct used when you need to override in order ENV_VARS -> Code defined struct fields -> Sane defaults if struct is nil

func MustEnvOverrideStruct

func MustEnvOverrideStruct(envPrefix string, s interface{})

MustEnvOverrideStruct used when you need to override a struct with `envconfig` fields from environment variables

func MustEnvOverrideVersion added in v0.2.3

func MustEnvOverrideVersion(target interface{})

func UnmarshalYAMLBase64 added in v0.2.8

func UnmarshalYAMLBase64(data string, to interface{}) error

func UnmarshalYAMLFile added in v0.2.8

func UnmarshalYAMLFile(path string, to interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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