Documentation ¶
Index ¶
- Constants
- func MustEnvCodeOverrideMap(envVarName string, target, src interface{})
- func MustEnvCodeOverrideStruct(envPrefix string, targetVars interface{}, codeVars interface{})
- func MustEnvOverrideStruct(envPrefix string, s interface{})
- func MustEnvOverrideVersion(target interface{})
- func UnmarshalYAMLBase64(data string, to interface{}) error
- func UnmarshalYAMLFile(path string, to interface{}) error
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" EnvVarSlackKey = "SLACK_API_KEY" EnvVarSlackKeyDescription = "The OAuth Slack API key to report tests results with" EnvVarSlackKeyExample = "xoxb-example-key" EnvVarSlackChannel = "SLACK_CHANNEL" EnvVarSlackChannelDescription = "The Slack code for the channel you want to send the notification to" EnvVarSlackChannelExample = "C000000000" EnvVarSlackUser = "SLACK_USER" EnvVarSlackUserDescription = "The Slack code for the user you want to notify" EnvVarSlackUserExample = "U000000000" EnvVarCLCommitSha = "CHAINLINK_COMMIT_SHA" EnvVarCLCommitShaDescription = "The sha of the commit that you're running tests on. Mostly used for CI" EnvVarCLCommitShaExample = "${{ github.sha }}" 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 UnmarshalYAMLFile ¶ added in v0.2.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.