Updates from PR comments:

- moved Vagrantfile to contrib dir
- gave secret request type more thought

Signed-off-by: Andrew Cornies <acornies@gmail.com>
This commit is contained in:
Andrew Cornies
2018-11-20 10:37:32 -05:00
committed by Alex Ellis
parent a9238f5631
commit b49dded3b3
2 changed files with 20 additions and 8 deletions

View File

@ -91,7 +91,19 @@ type DeleteFunctionRequest struct {
FunctionName string `json:"functionName"`
}
// SecretRequest create, update a secret
type SecretRequest struct {
Secrets *map[string]string `json:"secrets"`
// CreateSecretRequest create a secret w/ annotations
type CreateSecretRequest struct {
Secret Secret `json:"secret"`
}
// DeleteSecretRequest remote a secret by name
type DeleteSecretRequest struct {
SecretName string `json:"secretName"`
}
// Secret schema use Value only in write-only http verbs
type Secret struct {
Name string `json:"name"`
Value string `json:"value"` // write-only
Annotations *map[string]string `json:"annotations"`
}