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 |
---|---|
reactor.core.publisher.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 . |
reactor.core.publisher.Flux<String> |
list(String path)
Enumerate keys from a Vault path.
|
reactor.core.publisher.Mono<VaultResponse> |
read(String path)
Read from a Vault path.
|
<T> reactor.core.publisher.Mono<VaultResponseSupport<T>> |
read(String path,
Class<T> responseType)
Read from a Vault path.
|
default reactor.core.publisher.Mono<VaultResponse> |
write(String path)
Write to a Vault path.
|
reactor.core.publisher.Mono<VaultResponse> |
write(String path,
Object body)
Write to a Vault path.
|
reactor.core.publisher.Mono<VaultResponse> read(String path)
path
- must not be null.<T> reactor.core.publisher.Mono<VaultResponseSupport<T>> read(String path, Class<T> responseType)
path
- must not be null.responseType
- must not be null.reactor.core.publisher.Flux<String> list(String path)
path
- must not be null.default reactor.core.publisher.Mono<VaultResponse> write(String path)
path
- must not be null.reactor.core.publisher.Mono<VaultResponse> write(String path, @Nullable Object body)
path
- must not be null.body
- the body, may be null if absent.reactor.core.publisher.Mono<Void> delete(String path)
path
- must not be null.<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–2020 Pivotal Software, Inc.. All rights reserved.