explorer

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

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

func (n *NodeInfo) Deserialize(data []byte) error

Deserialize is the deserializer for node info struct

func (*NodeInfo) Serialize

func (n *NodeInfo) Serialize() (json.RawMessage, error)

Serialize is the serializer for node info struct

type PingMessage

type PingMessage struct {
	Ping string `json:"ping" example:"pong"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL