mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 23:03:24 +00:00
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:
committed by
Alex Ellis
parent
a9238f5631
commit
b49dded3b3
@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user