mirror of
https://github.com/openfaas/faas.git
synced 2025-06-11 01:36:47 +00:00
The function deployment and status structs have been moved away into the faas-provider package. Tested with a build, running tests, and CI. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
25 lines
757 B
Go
25 lines
757 B
Go
// Copyright (c) Alex Ellis 2017. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
// Package requests package provides a client SDK or library for
|
|
// the OpenFaaS gateway REST API
|
|
package requests
|
|
|
|
// AsyncReport is the report from a function executed on a queue worker.
|
|
type AsyncReport struct {
|
|
FunctionName string `json:"name"`
|
|
StatusCode int `json:"statusCode"`
|
|
TimeTaken float64 `json:"timeTaken"`
|
|
}
|
|
|
|
// DeleteFunctionRequest delete a deployed function
|
|
type DeleteFunctionRequest struct {
|
|
FunctionName string `json:"functionName"`
|
|
}
|
|
|
|
// Secret for underlying orchestrator
|
|
type Secret struct {
|
|
Name string `json:"name"`
|
|
Value string `json:"value,omitempty"`
|
|
}
|