// 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"`
}

// 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"`
	Namespace string `json:"namespace"`
	Value     string `json:"value,omitempty"`
}

Add Namespace to Secret type
Add Namespace to Secret type

Signed-off-by: Jonatas Baldin <a7e06ed847507222ad0884f1885f6cbe6160d284@gmail.com>
