Interface SecretManagerClient

All Known Implementing Classes:
DefaultSecretManagerClient

public interface SecretManagerClient
This interface is intended to abstract interactions with SecretManagerServiceClient, and instead of returning Google's ApiFuture transform it on reactive extensions.
Since:
3.4.0
Author:
Vinicius Carvalho
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<VersionedSecret>
    getSecret(String secretId)
    Fetches a secret from the Secret Manager storage using the `gcp.projectId` project, and "latest" as the version.
    org.reactivestreams.Publisher<VersionedSecret>
    getSecret(String secretId, String version)
    Fetches a secret from the Secret Manager storage using the `gcp.projectId` project.
    org.reactivestreams.Publisher<VersionedSecret>
    getSecret(String secretId, String version, String projectId)
    Fetches a secret from the Secret Manager storage.
  • Field Details

  • Method Details

    • getSecret

      @SingleResult org.reactivestreams.Publisher<VersionedSecret> getSecret(String secretId)
      Fetches a secret from the Secret Manager storage using the `gcp.projectId` project, and "latest" as the version.
      Parameters:
      secretId - - name of the secret
      Returns:
      String value of the secret or empty
    • getSecret

      @SingleResult org.reactivestreams.Publisher<VersionedSecret> getSecret(String secretId, String version)
      Fetches a secret from the Secret Manager storage using the `gcp.projectId` project.
      Parameters:
      secretId - - name of the secret
      version - - version of the secret
      Returns:
      String value of the secret or empty
    • getSecret

      @SingleResult org.reactivestreams.Publisher<VersionedSecret> getSecret(String secretId, String version, String projectId)
      Fetches a secret from the Secret Manager storage.
      Parameters:
      secretId - - name of the secret
      version - - version of the secret
      projectId - - project identifier
      Returns:
      String value of the secret or empty