public class SecretsClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SecretsClient.Payload
The model for data sent to a secrets service when creating or updating a secret.
|
| Constructor and Description |
|---|
SecretsClient(DcosHttpExecutor httpExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String path,
SecretsClient.Payload secret)
Create a new secret.
|
void |
delete(java.lang.String path)
Delete an existing secret.
|
java.util.Collection<java.lang.String> |
list(java.lang.String path)
List all secrets paths for given path.
|
void |
update(java.lang.String path,
SecretsClient.Payload secret)
Update a secret.
|
public SecretsClient(DcosHttpExecutor httpExecutor)
public java.util.Collection<java.lang.String> list(java.lang.String path)
throws java.io.IOException
path - location to listjava.io.IOException - if the list operation failed to completepublic void create(java.lang.String path,
SecretsClient.Payload secret)
throws java.io.IOException
path - location to create the secretsecret - a secret definitionjava.io.IOException - if the create operation failed to completepublic void update(java.lang.String path,
SecretsClient.Payload secret)
throws java.io.IOException
path - path which contains an existing secretsecret - an updated secret definitionjava.io.IOException - if the update failed to completepublic void delete(java.lang.String path)
throws java.io.IOException
path - path which contains the secretjava.io.IOException - if the operation failed