public interface ReactiveVaultOperations
ReactiveVaultTemplate
. This is the main entry
point to interact with Vault in an authenticated and unauthenticated context.
ReactiveVaultOperations
allows execution of callback methods. Callbacks can
execute requests within a session context
and the
without a session
.
doWithSession(Function)
,
doWithVault(Function)
,
WebClient
,
VaultTemplate
,
VaultTokenOperations
,
VaultTokenSupplier
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
delete(String path)
Delete a path.
|
<V,T extends org.reactivestreams.Publisher<V>> |
doWithSession(Function<WebClient,? extends T> sessionCallback)
Executes a Vault
RestOperationsCallback . |
<V,T extends org.reactivestreams.Publisher<V>> |
doWithVault(Function<WebClient,? extends T> clientCallback)
Executes a Vault
RestOperationsCallback . |
Flux<String> |
list(String path)
Enumerate keys from a Vault path.
|
Mono<VaultResponse> |
read(String path)
Read from a Vault path.
|
<T> Mono<VaultResponseSupport<T>> |
read(String path,
Class<T> responseType)
Read from a Vault path.
|
default Mono<VaultResponse> |
write(String path)
Write to a Vault path.
|
Mono<VaultResponse> |
write(String path,
Object body)
Write to a Vault path.
|
Mono<VaultResponse> read(String path)
path
- must not be null.<T> Mono<VaultResponseSupport<T>> read(String path, Class<T> responseType)
path
- must not be null.responseType
- must not be null.Flux<String> list(String path)
path
- must not be null.default Mono<VaultResponse> write(String path)
path
- must not be null.Mono<VaultResponse> write(String path, @Nullable Object body)
path
- must not be null.body
- the body, may be null if absent.<V,T extends org.reactivestreams.Publisher<V>> T doWithVault(Function<WebClient,? extends T> clientCallback) throws VaultException, WebClientException
RestOperationsCallback
. Allows to interact with Vault
using RestOperations
without requiring a
session.clientCallback
- the request.RestOperationsCallback
return value.VaultException
- when a
HttpStatusCodeException
occurs.WebClientException
- exceptions from
WebClient
.<V,T extends org.reactivestreams.Publisher<V>> T doWithSession(Function<WebClient,? extends T> sessionCallback) throws VaultException, WebClientException
RestOperationsCallback
. Allows to interact with Vault in
an authenticated session.sessionCallback
- the request.RestOperationsCallback
return value.VaultException
- when a
HttpStatusCodeException
occurs.WebClientException
- exceptions from
WebClient
.Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.