Documentation
¶
Index ¶
Constants ¶
View Source
const (
// SSDOverProvisionFactor factor by which the ssd are allowed to be overprovisioned
SSDOverProvisionFactor = 2
)
Variables ¶
View Source
var ( ErrNodeNotFound = errors.New("node not found") ErrGatewayNotFound = errors.New("gateway not found") )
ErrNodeNotFound creates new error type to define node existence or server problem
View Source
var ( ErrBadGateway = errors.New("bad gateway") ErrBadRequest = errors.New("bad request") )
ErrBadGateway creates new error type to define node existence or server problem
Functions ¶
func Setup ¶
func Setup(router *mux.Router, gitCommit string, database db.Database, relayClient rmb.Client) error
Setup is the server and do initial configurations @title Grid Proxy Server API @version 1.0 @description grid proxy server has the main methods to list farms, nodes, node details in the grid. @license.name Apache 2.0 @license.url http://www.apache.org/licenses/LICENSE-2.0.html @BasePath /
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main app objects
type ErrorMessage ¶
type ErrorMessage struct {
Message string `json:"message"`
}
type NodeInfo ¶
type NodeInfo struct {
Capacity types.CapacityResult `json:"capacity"`
Hypervisor string `json:"hypervisor"`
ZosVersion string `json:"zosVersion"`
}
NodeInfo is node specific info, queried directly from the node
func (*NodeInfo) Deserialize ¶
Deserialize is the deserializer for node info struct
type PingMessage ¶
type PingMessage struct {
Ping string `json:"ping" example:"pong"`
}
Click to show internal directories.
Click to hide internal directories.