Class LoadEnvOptions

java.lang.Object
codes.grow.packages.vault.secrets.LoadEnvOptions

public final class LoadEnvOptions extends Object
Options of loadEnv: overwrite existing variables and a name prefix.
  • Method Details

    • none

      public static LoadEnvOptions none()
      Returns the defaults: keep existing variables, no prefix, system properties.
      Returns:
      the defaults
    • builder

      public static LoadEnvOptions.Builder builder()
      Starts a builder.
      Returns:
      a new builder
    • override

      public boolean override()
      Returns whether existing variables are overwritten.
      Returns:
      the flag (default false)
    • prefix

      public String prefix()
      Returns the prefix added to generated variable names.
      Returns:
      the prefix (default empty)
    • target

      public EnvLoader.Target target()
      Returns where variables are written.
      Returns:
      the target (default EnvLoader.systemProperties())