mirror of
https://github.com/openfaas/faas.git
synced 2025-06-24 15:53:26 +00:00
Secrets iteration:
- added delete http verb to system/secrets - added secrets request type - added vagrant env provisioned by existing deploy_stack.sh Signed-off-by: Andrew Cornies <acornies@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
d2ef8b9207
commit
a9238f5631
@ -90,3 +90,8 @@ type AsyncReport struct {
|
||||
type DeleteFunctionRequest struct {
|
||||
FunctionName string `json:"functionName"`
|
||||
}
|
||||
|
||||
// SecretRequest create, update a secret
|
||||
type SecretRequest struct {
|
||||
Secrets *map[string]string `json:"secrets"`
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ func main() {
|
||||
r.HandleFunc("/system/functions", faasHandlers.UpdateFunction).Methods(http.MethodPut)
|
||||
r.HandleFunc("/system/scale-function/{name:[-a-zA-Z_0-9]+}", faasHandlers.ScaleFunction).Methods(http.MethodPost)
|
||||
|
||||
r.HandleFunc("/system/secrets", faasHandlers.SecretHandler).Methods(http.MethodGet, http.MethodPut, http.MethodPost)
|
||||
r.HandleFunc("/system/secrets", faasHandlers.SecretHandler).Methods(http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete)
|
||||
|
||||
if faasHandlers.QueuedProxy != nil {
|
||||
r.HandleFunc("/async-function/{name:[-a-zA-Z_0-9]+}/", faasHandlers.QueuedProxy).Methods(http.MethodPost)
|
||||
|
Reference in New Issue
Block a user