{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\nPackage node provides node-related API handlers.\n\n## Functions\n\n```go\nfunc Handler(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n\tsigningKey string,\n\tcustomRoles map[string][]string,\n) []func(e *echo.Echo)\n```\nHandler returns node route registration functions.\n\n## Types\n\n```go\ntype Node struct {\n\t// JobClient provides job-based operations for system queries.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nNode implementation of the Node APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Node\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Node) GetNodeDisk(\n\tctx context.Context,\n\trequest gen.GetNodeDiskRequestObject,\n) (gen.GetNodeDiskResponseObject, error)\n```\nGetNodeDisk get the node disk usage API endpoint.\n\n```go\nfunc (s *Node) GetNodeLoad(\n\tctx context.Context,\n\trequest gen.GetNodeLoadRequestObject,\n) (gen.GetNodeLoadResponseObject, error)\n```\nGetNodeLoad get the node load averages API endpoint.\n\n```go\nfunc (s *Node) GetNodeMemory(\n\tctx context.Context,\n\trequest gen.GetNodeMemoryRequestObject,\n) (gen.GetNodeMemoryResponseObject, error)\n```\nGetNodeMemory get the node memory stats API endpoint.\n\n```go\nfunc (s *Node) GetNodeOS(\n\tctx context.Context,\n\trequest gen.GetNodeOSRequestObject,\n) (gen.GetNodeOSResponseObject, error)\n```\nGetNodeOS get the node OS info API endpoint.\n\n```go\nfunc (s *Node) GetNodeStatus(\n\tctx context.Context,\n\trequest gen.GetNodeStatusRequestObject,\n) (gen.GetNodeStatusResponseObject, error)\n```\nGetNodeStatus get the node status API endpoint.\n\n```go\nfunc (s *Node) GetNodeUptime(\n\tctx context.Context,\n\trequest gen.GetNodeUptimeRequestObject,\n) (gen.GetNodeUptimeResponseObject, error)\n```\nGetNodeUptime get the node uptime API endpoint.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node","name":"node","synopsis":"Package node provides node-related API handlers.","isRedistributable":true}
