Interface VaultConfigHttpClientV1
- All Superinterfaces:
VaultConfigHttpClient<VaultResponseV1>
@Client(value="${vault.client.uri}",
configuration=VaultClientConfiguration.class)
public interface VaultConfigHttpClientV1
extends VaultConfigHttpClient<VaultResponseV1>
A non-blocking HTTP client for Vault - KV v2.
- Since:
- 1.2.0
- Author:
- thiagolocatelli
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
org.reactivestreams.Publisher<VaultResponseV1>
readConfigurationValues
(@NonNull String token, @NonNull String backend, @NonNull String vaultKey) Reads an application configuration from Vault.
-
Field Details
-
CLIENT_DESCRIPTION
Vault Http Client description.- See Also:
-
-
Method Details
-
readConfigurationValues
@Get("/v1/{backend}/{vaultKey}") @Produces(single=true) @Retryable(attempts="${pool.retry-count:3}", delay="${pool.retry-delay:1s}") org.reactivestreams.Publisher<VaultResponseV1> readConfigurationValues(@NonNull @Header("X-Vault-Token") @NonNull String token, @NonNull @NonNull String backend, @NonNull @NonNull String vaultKey) Reads an application configuration from Vault.- Specified by:
readConfigurationValues
in interfaceVaultConfigHttpClient<VaultResponseV1>
- Parameters:
token
- Vault authentication tokenbackend
- The name of the secret engine in VaultvaultKey
- The vault key- Returns:
- A
Publisher
that emits a list ofVaultResponseV1
-
getDescription
- Specified by:
getDescription
in interfaceVaultConfigHttpClient<VaultResponseV1>
- Returns:
- The client description
-