Package org.ysb33r.gradle.iac.base.tf
Interface SecretVariables
-
- All Superinterfaces:
SecretVariablesProvider
- All Known Subinterfaces:
IacBackendSpec
public interface SecretVariables extends SecretVariablesProvider
Methods for adding and accessing secrets.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfromSecretsProvider(org.gradle.api.provider.Provider<java.util.Map<java.lang.String,org.ysb33r.grolifant5.api.core.SimpleSecureString>> secretsProvider)Use secrets from another provider of secrets.voidsecretProperty(java.lang.String key, java.lang.String propertyName)Sets a secret variable that will be injected into the environment at run time.voidsecretPropertyOrBlank(java.lang.String key, java.lang.String propertyName)Sets a secret variable that will be injected into the environment at run time.voidsecretVariable(java.lang.String key, java.lang.Object value)Sets a secret variable that will be injected into the environment at run time.-
Methods inherited from interface org.ysb33r.gradle.iac.base.tf.SecretVariablesProvider
getSecretVariables
-
-
-
-
Method Detail
-
secretVariable
void secretVariable(java.lang.String key, java.lang.Object value)Sets a secret variable that will be injected into the environment at run time.- Parameters:
key- Keyvalue- Value to be encrypted. This is anything that can be converted to a string. If this is a provider, it will be evaluated at this point.
-
secretPropertyOrBlank
void secretPropertyOrBlank(java.lang.String key, java.lang.String propertyName)Sets a secret variable that will be injected into the environment at run time.- Parameters:
key- KeypropertyName- Name of property If the property cannot be resolved, it will be set to a blank string.
-
secretProperty
void secretProperty(java.lang.String key, java.lang.String propertyName)Sets a secret variable that will be injected into the environment at run time.- Parameters:
key- KeypropertyName- Name of property If the property cannot be resolved, no action will be taken and a warning will be logged.
-
fromSecretsProvider
void fromSecretsProvider(org.gradle.api.provider.Provider<java.util.Map<java.lang.String,org.ysb33r.grolifant5.api.core.SimpleSecureString>> secretsProvider)
Use secrets from another provider of secrets.- Parameters:
secretsProvider- Provider of secrets.
-
-