Package codes.grow.packages.vault
Class SecretsOptions.Builder
java.lang.Object
codes.grow.packages.vault.SecretsOptions.Builder
- Enclosing class:
SecretsOptions
Builder of
SecretsOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Sets the KV mount (defaultVaultConfig.kvMount(), i.e.Sets the base path inside the mount that names are relative to (defaultVaultConfig.secretsPath()).valueField(String valueField) Sets the data field that holds the value (defaultVaultConfig.valueField()).
-
Method Details
-
mount
Sets the KV mount (defaultVaultConfig.kvMount(), i.e.secret).- Parameters:
mount- mount path- Returns:
- this builder
-
path
Sets the base path inside the mount that names are relative to (defaultVaultConfig.secretsPath()).- Parameters:
path- base path- Returns:
- this builder
-
valueField
Sets the data field that holds the value (defaultVaultConfig.valueField()).- Parameters:
valueField- field name- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-