use read/write/delete instead of the -Secret wrappers

Stefan Kalscheuer 2021-04-05 19:59:37 +02:00
parent ae2ef696f4
commit e426ad82b3

@ -25,20 +25,20 @@ Several common features have been abstracted to reduce overhead code.
connector.write("secret/to/write", data); connector.write("secret/to/write", data);
// Delete a secret. // Delete a secret.
connector.deleteSecret("secret/to/delete"); connector.delete("secret/to/delete");
``` ```
#### Read and write to default _secret/_ mount #### Read and write to default _secret/_ mount
```java ```java
// Read from "secret/to/read". // Read from "secret/to/read".
SecretResponse secret = connector.readSecret("to/read"); SecretResponse secret = connector.read("secret/to/read");
// Write to "secret/to/write". // Write to "secret/to/write".
connector.writeSecret("to/write", data); connector.write("secret/to/write", data);
// Delete a secret "secret/to/delete. // Delete a secret "secret/to/delete.
connector.deleteSecret("to/delete"); connector.delete("secret/to/delete");
``` ```
#### Read and write data/metadata with KV v2 backend #### Read and write data/metadata with KV v2 backend