Skip to main content
Glama
nodes.go1.01 kB
// File: types/nodes.go package types // NodeSummary represents a summary of a Nomad node type NodeSummary struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` Datacenter string `json:"datacenter"` NodeClass string `json:"node_class"` } // Node represents a detailed view of a Nomad node type Node struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` Datacenter string `json:"datacenter"` Drain bool `json:"drain"` Drivers map[string]bool `json:"drivers"` Resources NodeResources `json:"resources"` Reserved NodeResources `json:"reserved"` NodeClass string `json:"node_class"` Meta map[string]string `json:"meta"` } // NodeResources represents the resources of a node type NodeResources struct { CPU int `json:"cpu"` MemoryMB int `json:"memory_mb"` DiskMB int `json:"disk_mb"` }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kocierik/mcp-nomad'

If you have feedback or need assistance with the MCP directory API, please join our Discord server