Interface SecretVariables

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      void secretProperty​(java.lang.String key, java.lang.String propertyName)
      Sets a secret variable that will be injected into the environment at run time.
      void secretPropertyOrBlank​(java.lang.String key, java.lang.String propertyName)
      Sets a secret variable that will be injected into the environment at run time.
      void secretVariable​(java.lang.String key, java.lang.Object value)
      Sets a secret variable that will be injected into the environment at run time.
    • 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 - Key
        value - 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 - Key
        propertyName - 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 - Key
        propertyName - 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.