use read/write/delete instead of the -Secret wrappers
parent
ae2ef696f4
commit
e426ad82b3
@ -25,20 +25,20 @@ Several common features have been abstracted to reduce overhead code.
|
||||
connector.write("secret/to/write", data);
|
||||
|
||||
// Delete a secret.
|
||||
connector.deleteSecret("secret/to/delete");
|
||||
connector.delete("secret/to/delete");
|
||||
```
|
||||
|
||||
#### Read and write to default _secret/_ mount
|
||||
|
||||
```java
|
||||
// Read from "secret/to/read".
|
||||
SecretResponse secret = connector.readSecret("to/read");
|
||||
SecretResponse secret = connector.read("secret/to/read");
|
||||
|
||||
// Write to "secret/to/write".
|
||||
connector.writeSecret("to/write", data);
|
||||
connector.write("secret/to/write", data);
|
||||
|
||||
// Delete a secret "secret/to/delete.
|
||||
connector.deleteSecret("to/delete");
|
||||
connector.delete("secret/to/delete");
|
||||
```
|
||||
|
||||
#### Read and write data/metadata with KV v2 backend
|
||||
|
Loading…
x
Reference in New Issue
Block a user