Class LoadEnvOptions
java.lang.Object
codes.grow.packages.vault.secrets.LoadEnvOptions
Options of
loadEnv: overwrite existing variables and a name prefix.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadEnvOptions.Builderbuilder()Starts a builder.static LoadEnvOptionsnone()Returns the defaults: keep existing variables, no prefix, system properties.booleanoverride()Returns whether existing variables are overwritten.prefix()Returns the prefix added to generated variable names.target()Returns where variables are written.
-
Method Details
-
none
Returns the defaults: keep existing variables, no prefix, system properties.- Returns:
- the defaults
-
builder
Starts a builder.- Returns:
- a new builder
-
override
public boolean override()Returns whether existing variables are overwritten.- Returns:
- the flag (default false)
-
prefix
Returns the prefix added to generated variable names.- Returns:
- the prefix (default empty)
-
target
Returns where variables are written.- Returns:
- the target (default
EnvLoader.systemProperties())
-