{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gen\n\nPackage gen contains generated code for the node API.\n\nPackage gen provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.\n\n## Constants\n\n```go\nconst (\n\tBearerAuthScopes bearerAuthContextKey = \"BearerAuth.Scopes\"\n)\n```\n\n## Functions\n\n```go\nfunc RegisterHandlers(router EchoRouter, si ServerInterface)\n```\nRegisterHandlers adds each server route to the EchoRouter.\n\n```go\nfunc RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)\n```\nRegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the paths so the API can be served under a prefix.\n\n```go\nfunc RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)\n```\nRegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.\n\n## Types\n\n```go\ntype DiskCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []DiskResultItem    `json:\"results\"`\n}\n```\nDiskCollectionResponse defines model for DiskCollectionResponse.\n\n```go\ntype DiskResponse struct {\n\t// Free Free disk space in bytes.\n\tFree int `json:\"free\"`\n\n\t// Name Disk identifier, e.g., \"/dev/sda1\".\n\tName string `json:\"name\"`\n\n\t// Total Total disk space in bytes.\n\tTotal int `json:\"total\"`\n\n\t// Used Used disk space in bytes.\n\tUsed int `json:\"used\"`\n}\n```\nDiskResponse Local disk usage information.\n\n```go\ntype DiskResultItem struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Disks List of local disk usage information.\n\tDisks *DisksResponse `json:\"disks,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname The hostname of the agent.\n\tHostname string `json:\"hostname\"`\n\n\t// Status The status of the operation for this host.\n\tStatus DiskResultItemStatus `json:\"status\"`\n}\n```\nDiskResultItem defines model for DiskResultItem.\n\n```go\ntype DiskResultItemStatus string\n```\nDiskResultItemStatus The status of the operation for this host.\n\n```go\nconst (\n\tDiskResultItemStatusFailed  DiskResultItemStatus = \"failed\"\n\tDiskResultItemStatusOk      DiskResultItemStatus = \"ok\"\n\tDiskResultItemStatusSkipped DiskResultItemStatus = \"skipped\"\n\tDiskResultItemStatusTimeout DiskResultItemStatus = \"timeout\"\n)\n```\nDefines values for DiskResultItemStatus.\n\n```go\nfunc (e DiskResultItemStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the DiskResultItemStatus enum.\n\n```go\ntype DisksResponse = []DiskResponse\n```\nDisksResponse List of local disk usage information.\n\n```go\ntype EchoRouter interface {\n\tCONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tDELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tGET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tHEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tOPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tPATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tPOST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tPUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n\tTRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) echo.RouteInfo\n}\n```\nThis is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration\n\n```go\ntype ErrorResponse = externalRef0.ErrorResponse\n```\nErrorResponse defines model for ErrorResponse.\n\n```go\ntype GetNodeDisk200JSONResponse DiskCollectionResponse\n```\n\n```go\nfunc (response GetNodeDisk200JSONResponse) VisitGetNodeDiskResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeDisk400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeDisk400JSONResponse) VisitGetNodeDiskResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeDisk401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeDisk401JSONResponse) VisitGetNodeDiskResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeDisk403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeDisk403JSONResponse) VisitGetNodeDiskResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeDisk500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeDisk500JSONResponse) VisitGetNodeDiskResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeDiskRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeDiskResponseObject interface {\n\tVisitGetNodeDiskResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeLoad200JSONResponse LoadCollectionResponse\n```\n\n```go\nfunc (response GetNodeLoad200JSONResponse) VisitGetNodeLoadResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeLoad400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeLoad400JSONResponse) VisitGetNodeLoadResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeLoad401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeLoad401JSONResponse) VisitGetNodeLoadResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeLoad403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeLoad403JSONResponse) VisitGetNodeLoadResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeLoad500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeLoad500JSONResponse) VisitGetNodeLoadResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeLoadRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeLoadResponseObject interface {\n\tVisitGetNodeLoadResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeMemory200JSONResponse MemoryCollectionResponse\n```\n\n```go\nfunc (response GetNodeMemory200JSONResponse) VisitGetNodeMemoryResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeMemory400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeMemory400JSONResponse) VisitGetNodeMemoryResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeMemory401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeMemory401JSONResponse) VisitGetNodeMemoryResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeMemory403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeMemory403JSONResponse) VisitGetNodeMemoryResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeMemory500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeMemory500JSONResponse) VisitGetNodeMemoryResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeMemoryRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeMemoryResponseObject interface {\n\tVisitGetNodeMemoryResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeOS200JSONResponse OSInfoCollectionResponse\n```\n\n```go\nfunc (response GetNodeOS200JSONResponse) VisitGetNodeOSResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeOS400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeOS400JSONResponse) VisitGetNodeOSResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeOS401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeOS401JSONResponse) VisitGetNodeOSResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeOS403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeOS403JSONResponse) VisitGetNodeOSResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeOS500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeOS500JSONResponse) VisitGetNodeOSResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeOSRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeOSResponseObject interface {\n\tVisitGetNodeOSResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeStatus200JSONResponse NodeStatusCollectionResponse\n```\n\n```go\nfunc (response GetNodeStatus200JSONResponse) VisitGetNodeStatusResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeStatus400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeStatus400JSONResponse) VisitGetNodeStatusResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeStatus401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeStatus401JSONResponse) VisitGetNodeStatusResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeStatus403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeStatus403JSONResponse) VisitGetNodeStatusResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeStatus500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeStatus500JSONResponse) VisitGetNodeStatusResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeStatusRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeStatusResponseObject interface {\n\tVisitGetNodeStatusResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeUptime200JSONResponse UptimeCollectionResponse\n```\n\n```go\nfunc (response GetNodeUptime200JSONResponse) VisitGetNodeUptimeResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeUptime400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeUptime400JSONResponse) VisitGetNodeUptimeResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeUptime401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeUptime401JSONResponse) VisitGetNodeUptimeResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeUptime403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeUptime403JSONResponse) VisitGetNodeUptimeResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeUptime500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeUptime500JSONResponse) VisitGetNodeUptimeResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeUptimeRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeUptimeResponseObject interface {\n\tVisitGetNodeUptimeResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Hostname = string\n```\nHostname defines model for Hostname.\n\n```go\ntype LoadAverageResponse struct {\n\t// N15min Load average for the last 15 minutes.\n\tN15min float32 `json:\"15min\"`\n\n\t// N1min Load average for the last 1 minute.\n\tN1min float32 `json:\"1min\"`\n\n\t// N5min Load average for the last 5 minutes.\n\tN5min float32 `json:\"5min\"`\n}\n```\nLoadAverageResponse The system load averages for 1, 5, and 15 minutes.\n\n```go\ntype LoadCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []LoadResultItem    `json:\"results\"`\n}\n```\nLoadCollectionResponse defines model for LoadCollectionResponse.\n\n```go\ntype LoadResultItem struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname The hostname of the agent.\n\tHostname string `json:\"hostname\"`\n\n\t// LoadAverage The system load averages for 1, 5, and 15 minutes.\n\tLoadAverage *LoadAverageResponse `json:\"load_average,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus LoadResultItemStatus `json:\"status\"`\n}\n```\nLoadResultItem defines model for LoadResultItem.\n\n```go\ntype LoadResultItemStatus string\n```\nLoadResultItemStatus The status of the operation for this host.\n\n```go\nconst (\n\tLoadResultItemStatusFailed  LoadResultItemStatus = \"failed\"\n\tLoadResultItemStatusOk      LoadResultItemStatus = \"ok\"\n\tLoadResultItemStatusSkipped LoadResultItemStatus = \"skipped\"\n\tLoadResultItemStatusTimeout LoadResultItemStatus = \"timeout\"\n)\n```\nDefines values for LoadResultItemStatus.\n\n```go\nfunc (e LoadResultItemStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the LoadResultItemStatus enum.\n\n```go\ntype MemoryCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []MemoryResultItem  `json:\"results\"`\n}\n```\nMemoryCollectionResponse defines model for MemoryCollectionResponse.\n\n```go\ntype MemoryResponse struct {\n\t// Free Free memory in bytes.\n\tFree int `json:\"free\"`\n\n\t// Total Total memory in bytes.\n\tTotal int `json:\"total\"`\n\n\t// Used Used memory in bytes.\n\tUsed int `json:\"used\"`\n}\n```\nMemoryResponse Memory usage information.\n\n```go\ntype MemoryResultItem struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname The hostname of the agent.\n\tHostname string `json:\"hostname\"`\n\n\t// Memory Memory usage information.\n\tMemory *MemoryResponse `json:\"memory,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus MemoryResultItemStatus `json:\"status\"`\n}\n```\nMemoryResultItem defines model for MemoryResultItem.\n\n```go\ntype MemoryResultItemStatus string\n```\nMemoryResultItemStatus The status of the operation for this host.\n\n```go\nconst (\n\tMemoryResultItemStatusFailed  MemoryResultItemStatus = \"failed\"\n\tMemoryResultItemStatusOk      MemoryResultItemStatus = \"ok\"\n\tMemoryResultItemStatusSkipped MemoryResultItemStatus = \"skipped\"\n\tMemoryResultItemStatusTimeout MemoryResultItemStatus = \"timeout\"\n)\n```\nDefines values for MemoryResultItemStatus.\n\n```go\nfunc (e MemoryResultItemStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the MemoryResultItemStatus enum.\n\n```go\ntype NodeStatusCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID  `json:\"job_id,omitempty\"`\n\tResults []NodeStatusResponse `json:\"results\"`\n}\n```\nNodeStatusCollectionResponse defines model for NodeStatusCollectionResponse.\n\n```go\ntype NodeStatusResponse struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Disks List of local disk usage information.\n\tDisks *DisksResponse `json:\"disks,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// FieldErrors The reads that failed, keyed by the field they would have filled. Absent when every read succeeded.\n\tFieldErrors *map[string]string `json:\"field_errors,omitempty\"`\n\n\t// Hostname The hostname of the system.\n\tHostname string `json:\"hostname\"`\n\n\t// LoadAverage The system load averages for 1, 5, and 15 minutes.\n\tLoadAverage *LoadAverageResponse `json:\"load_average,omitempty\"`\n\n\t// Memory Memory usage information.\n\tMemory *MemoryResponse `json:\"memory,omitempty\"`\n\n\t// OsInfo Operating system information.\n\tOsInfo *OSInfoResponse `json:\"os_info,omitempty\"`\n\n\t// Partial True when one or more of the reads behind this status failed. The fields they would have filled are absent or zero-valued, and field_errors says which and why.\n\tPartial *bool `json:\"partial,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus NodeStatusResponseStatus `json:\"status\"`\n\n\t// Uptime The uptime of the system.\n\tUptime *string `json:\"uptime,omitempty\"`\n}\n```\nNodeStatusResponse defines model for NodeStatusResponse.\n\n```go\ntype NodeStatusResponseStatus string\n```\nNodeStatusResponseStatus The status of the operation for this host.\n\n```go\nconst (\n\tNodeStatusResponseStatusFailed  NodeStatusResponseStatus = \"failed\"\n\tNodeStatusResponseStatusOk      NodeStatusResponseStatus = \"ok\"\n\tNodeStatusResponseStatusSkipped NodeStatusResponseStatus = \"skipped\"\n\tNodeStatusResponseStatusTimeout NodeStatusResponseStatus = \"timeout\"\n)\n```\nDefines values for NodeStatusResponseStatus.\n\n```go\nfunc (e NodeStatusResponseStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the NodeStatusResponseStatus enum.\n\n```go\ntype OSInfoCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []OSInfoResultItem  `json:\"results\"`\n}\n```\nOSInfoCollectionResponse defines model for OSInfoCollectionResponse.\n\n```go\ntype OSInfoResponse struct {\n\t// Distribution The name of the Linux distribution.\n\tDistribution string `json:\"distribution\"`\n\n\t// Version The version of the Linux distribution.\n\tVersion string `json:\"version\"`\n}\n```\nOSInfoResponse Operating system information.\n\n```go\ntype OSInfoResultItem struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname The hostname of the agent.\n\tHostname string `json:\"hostname\"`\n\n\t// OsInfo Operating system information.\n\tOsInfo *OSInfoResponse `json:\"os_info,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus OSInfoResultItemStatus `json:\"status\"`\n}\n```\nOSInfoResultItem defines model for OSInfoResultItem.\n\n```go\ntype OSInfoResultItemStatus string\n```\nOSInfoResultItemStatus The status of the operation for this host.\n\n```go\nconst (\n\tOSInfoResultItemStatusFailed  OSInfoResultItemStatus = \"failed\"\n\tOSInfoResultItemStatusOk      OSInfoResultItemStatus = \"ok\"\n\tOSInfoResultItemStatusSkipped OSInfoResultItemStatus = \"skipped\"\n\tOSInfoResultItemStatusTimeout OSInfoResultItemStatus = \"timeout\"\n)\n```\nDefines values for OSInfoResultItemStatus.\n\n```go\nfunc (e OSInfoResultItemStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the OSInfoResultItemStatus enum.\n\n```go\ntype RegisterHandlersOptions struct {\n\t// BaseURL is prepended to every registered path so the API can be served\n\t// under a prefix.\n\tBaseURL string\n\t// OperationMiddlewares lets the caller attach per-operation middleware at\n\t// registration time. The map key is the OpenAPI `operationId` value as it\n\t// appears in the spec (the raw, un-normalized form). Operations that have\n\t// no entry are registered with no extra middleware. A nil map disables\n\t// per-operation middleware entirely.\n\tOperationMiddlewares map[string][]echo.MiddlewareFunc\n}\n```\nRegisterHandlersOptions configures RegisterHandlersWithOptions.\n\n```go\ntype ServerInterface interface {\n\t// Retrieve node status\n\t// (GET /api/node/{hostname})\n\tGetNodeStatus(ctx *echo.Context, hostname Hostname) error\n\t// Retrieve disk usage\n\t// (GET /api/node/{hostname}/disk)\n\tGetNodeDisk(ctx *echo.Context, hostname Hostname) error\n\t// Retrieve load averages\n\t// (GET /api/node/{hostname}/load)\n\tGetNodeLoad(ctx *echo.Context, hostname Hostname) error\n\t// Retrieve memory stats\n\t// (GET /api/node/{hostname}/memory)\n\tGetNodeMemory(ctx *echo.Context, hostname Hostname) error\n\t// Retrieve OS info\n\t// (GET /api/node/{hostname}/os)\n\tGetNodeOS(ctx *echo.Context, hostname Hostname) error\n\t// Retrieve uptime\n\t// (GET /api/node/{hostname}/uptime)\n\tGetNodeUptime(ctx *echo.Context, hostname Hostname) error\n}\n```\nServerInterface represents all server handlers.\n\n```go\nfunc NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface\n```\n\n```go\ntype ServerInterfaceWrapper struct {\n\tHandler ServerInterface\n}\n```\nServerInterfaceWrapper converts echo contexts to parameters.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeDisk(ctx *echo.Context) error\n```\nGetNodeDisk converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeLoad(ctx *echo.Context) error\n```\nGetNodeLoad converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeMemory(ctx *echo.Context) error\n```\nGetNodeMemory converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeOS(ctx *echo.Context) error\n```\nGetNodeOS converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeStatus(ctx *echo.Context) error\n```\nGetNodeStatus converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeUptime(ctx *echo.Context) error\n```\nGetNodeUptime converts echo context to params.\n\n```go\ntype StrictHandlerFunc func(ctx *echo.Context, request any) (any, error)\n```\n\n```go\ntype StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc\n```\n\n```go\ntype StrictServerInterface interface {\n\t// Retrieve node status\n\t// (GET /api/node/{hostname})\n\tGetNodeStatus(ctx context.Context, request GetNodeStatusRequestObject) (GetNodeStatusResponseObject, error)\n\t// Retrieve disk usage\n\t// (GET /api/node/{hostname}/disk)\n\tGetNodeDisk(ctx context.Context, request GetNodeDiskRequestObject) (GetNodeDiskResponseObject, error)\n\t// Retrieve load averages\n\t// (GET /api/node/{hostname}/load)\n\tGetNodeLoad(ctx context.Context, request GetNodeLoadRequestObject) (GetNodeLoadResponseObject, error)\n\t// Retrieve memory stats\n\t// (GET /api/node/{hostname}/memory)\n\tGetNodeMemory(ctx context.Context, request GetNodeMemoryRequestObject) (GetNodeMemoryResponseObject, error)\n\t// Retrieve OS info\n\t// (GET /api/node/{hostname}/os)\n\tGetNodeOS(ctx context.Context, request GetNodeOSRequestObject) (GetNodeOSResponseObject, error)\n\t// Retrieve uptime\n\t// (GET /api/node/{hostname}/uptime)\n\tGetNodeUptime(ctx context.Context, request GetNodeUptimeRequestObject) (GetNodeUptimeResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n```go\ntype UptimeCollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []UptimeResponse    `json:\"results\"`\n}\n```\nUptimeCollectionResponse defines model for UptimeCollectionResponse.\n\n```go\ntype UptimeResponse struct {\n\t// Changed Whether the operation modified system state.\n\tChanged *bool `json:\"changed,omitempty\"`\n\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname The hostname of the agent.\n\tHostname string `json:\"hostname\"`\n\n\t// Status The status of the operation for this host.\n\tStatus UptimeResponseStatus `json:\"status\"`\n\n\t// Uptime The uptime of the system.\n\tUptime *string `json:\"uptime,omitempty\"`\n}\n```\nUptimeResponse System uptime information.\n\n```go\ntype UptimeResponseStatus string\n```\nUptimeResponseStatus The status of the operation for this host.\n\n```go\nconst (\n\tUptimeResponseStatusFailed  UptimeResponseStatus = \"failed\"\n\tUptimeResponseStatusOk      UptimeResponseStatus = \"ok\"\n\tUptimeResponseStatusSkipped UptimeResponseStatus = \"skipped\"\n\tUptimeResponseStatusTimeout UptimeResponseStatus = \"timeout\"\n)\n```\nDefines values for UptimeResponseStatus.\n\n```go\nfunc (e UptimeResponseStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the UptimeResponseStatus enum.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/gen","name":"gen","synopsis":"Package gen contains generated code for the node API.","isRedistributable":true}
