{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gen\n\nPackage gen contains generated code for the service 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 DeleteNodeService200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response DeleteNodeService200JSONResponse) VisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeService400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeService400JSONResponse) VisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeService401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeService401JSONResponse) VisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeService403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeService403JSONResponse) VisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeService500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeService500JSONResponse) VisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeServiceRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype DeleteNodeServiceResponseObject interface {\n\tVisitDeleteNodeServiceResponse(w http.ResponseWriter) error\n}\n```\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 GetNodeService200JSONResponse ServiceListResponse\n```\n\n```go\nfunc (response GetNodeService200JSONResponse) VisitGetNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeService400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeService400JSONResponse) VisitGetNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeService401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeService401JSONResponse) VisitGetNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeService403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeService403JSONResponse) VisitGetNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeService500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeService500JSONResponse) VisitGetNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName200JSONResponse ServiceGetResponse\n```\n\n```go\nfunc (response GetNodeServiceByName200JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeServiceByName400JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeServiceByName401JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeServiceByName403JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName404JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeServiceByName404JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByName500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeServiceByName500JSONResponse) VisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeServiceByNameRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype GetNodeServiceByNameResponseObject interface {\n\tVisitGetNodeServiceByNameResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNodeServiceRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeServiceResponseObject interface {\n\tVisitGetNodeServiceResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Hostname = string\n```\nHostname defines model for Hostname.\n\n```go\ntype PostNodeService200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeService200JSONResponse) VisitPostNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeService400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeService400JSONResponse) VisitPostNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeService401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeService401JSONResponse) VisitPostNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeService403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeService403JSONResponse) VisitPostNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeService500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeService500JSONResponse) VisitPostNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisable200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeServiceDisable200JSONResponse) VisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisable400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceDisable400JSONResponse) VisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisable401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceDisable401JSONResponse) VisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisable403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceDisable403JSONResponse) VisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisable500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceDisable500JSONResponse) VisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceDisableRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype PostNodeServiceDisableResponseObject interface {\n\tVisitPostNodeServiceDisableResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostNodeServiceEnable200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeServiceEnable200JSONResponse) VisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceEnable400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceEnable400JSONResponse) VisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceEnable401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceEnable401JSONResponse) VisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceEnable403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceEnable403JSONResponse) VisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceEnable500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceEnable500JSONResponse) VisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceEnableRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype PostNodeServiceEnableResponseObject interface {\n\tVisitPostNodeServiceEnableResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostNodeServiceJSONRequestBody = ServiceCreateRequest\n```\nPostNodeServiceJSONRequestBody defines body for PostNodeService for application/json ContentType.\n\n```go\ntype PostNodeServiceRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tBody     *PostNodeServiceJSONRequestBody\n}\n```\n\n```go\ntype PostNodeServiceResponseObject interface {\n\tVisitPostNodeServiceResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostNodeServiceRestart200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeServiceRestart200JSONResponse) VisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceRestart400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceRestart400JSONResponse) VisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceRestart401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceRestart401JSONResponse) VisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceRestart403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceRestart403JSONResponse) VisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceRestart500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceRestart500JSONResponse) VisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceRestartRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype PostNodeServiceRestartResponseObject interface {\n\tVisitPostNodeServiceRestartResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostNodeServiceStart200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeServiceStart200JSONResponse) VisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStart400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStart400JSONResponse) VisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStart401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStart401JSONResponse) VisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStart403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStart403JSONResponse) VisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStart500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStart500JSONResponse) VisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStartRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype PostNodeServiceStartResponseObject interface {\n\tVisitPostNodeServiceStartResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostNodeServiceStop200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PostNodeServiceStop200JSONResponse) VisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStop400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStop400JSONResponse) VisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStop401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStop401JSONResponse) VisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStop403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStop403JSONResponse) VisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStop500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeServiceStop500JSONResponse) VisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeServiceStopRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype PostNodeServiceStopResponseObject interface {\n\tVisitPostNodeServiceStopResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PutNodeService200JSONResponse ServiceMutationResponse\n```\n\n```go\nfunc (response PutNodeService200JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeService400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeService400JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeService401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeService401JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeService403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeService403JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeService404JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeService404JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeService500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeService500JSONResponse) VisitPutNodeServiceResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeServiceJSONRequestBody = ServiceUpdateRequest\n```\nPutNodeServiceJSONRequestBody defines body for PutNodeService for application/json ContentType.\n\n```go\ntype PutNodeServiceRequestObject struct {\n\tHostname Hostname    `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     ServiceName `json:\"name\" validate:\"required,min=1\"`\n\tBody     *PutNodeServiceJSONRequestBody\n}\n```\n\n```go\ntype PutNodeServiceResponseObject interface {\n\tVisitPutNodeServiceResponse(w http.ResponseWriter) error\n}\n```\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// List all services\n\t// (GET /api/node/{hostname}/service)\n\tGetNodeService(ctx *echo.Context, hostname Hostname) error\n\t// Create a service unit file\n\t// (POST /api/node/{hostname}/service)\n\tPostNodeService(ctx *echo.Context, hostname Hostname) error\n\t// Delete a service unit file\n\t// (DELETE /api/node/{hostname}/service/{name})\n\tDeleteNodeService(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Get service details\n\t// (GET /api/node/{hostname}/service/{name})\n\tGetNodeServiceByName(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Update a service unit file\n\t// (PUT /api/node/{hostname}/service/{name})\n\tPutNodeService(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Disable a service\n\t// (POST /api/node/{hostname}/service/{name}/disable)\n\tPostNodeServiceDisable(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Enable a service\n\t// (POST /api/node/{hostname}/service/{name}/enable)\n\tPostNodeServiceEnable(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Restart a service\n\t// (POST /api/node/{hostname}/service/{name}/restart)\n\tPostNodeServiceRestart(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Start a service\n\t// (POST /api/node/{hostname}/service/{name}/start)\n\tPostNodeServiceStart(ctx *echo.Context, hostname Hostname, name ServiceName) error\n\t// Stop a service\n\t// (POST /api/node/{hostname}/service/{name}/stop)\n\tPostNodeServiceStop(ctx *echo.Context, hostname Hostname, name ServiceName) 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) DeleteNodeService(ctx *echo.Context) error\n```\nDeleteNodeService converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeService(ctx *echo.Context) error\n```\nGetNodeService converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeServiceByName(ctx *echo.Context) error\n```\nGetNodeServiceByName converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeService(ctx *echo.Context) error\n```\nPostNodeService converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeServiceDisable(ctx *echo.Context) error\n```\nPostNodeServiceDisable converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeServiceEnable(ctx *echo.Context) error\n```\nPostNodeServiceEnable converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeServiceRestart(ctx *echo.Context) error\n```\nPostNodeServiceRestart converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeServiceStart(ctx *echo.Context) error\n```\nPostNodeServiceStart converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeServiceStop(ctx *echo.Context) error\n```\nPostNodeServiceStop converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PutNodeService(ctx *echo.Context) error\n```\nPutNodeService converts echo context to params.\n\n```go\ntype ServiceCreateRequest struct {\n\t// Name Service unit name.\n\tName string `json:\"name\" validate:\"required,min=1\"`\n\n\t// Object Object Store reference for the unit file.\n\tObject string `json:\"object\" validate:\"required,min=1\"`\n}\n```\nServiceCreateRequest defines model for ServiceCreateRequest.\n\n```go\ntype ServiceGetEntry struct {\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname Hostname of the agent that reported this entry.\n\tHostname string `json:\"hostname\"`\n\n\t// Service Information about a systemd service.\n\tService *ServiceInfo `json:\"service,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus ServiceGetEntryStatus `json:\"status\"`\n}\n```\nServiceGetEntry Service get result for a single agent.\n\n```go\ntype ServiceGetEntryStatus string\n```\nServiceGetEntryStatus The status of the operation for this host.\n\n```go\nconst (\n\tServiceGetEntryStatusFailed  ServiceGetEntryStatus = \"failed\"\n\tServiceGetEntryStatusOk      ServiceGetEntryStatus = \"ok\"\n\tServiceGetEntryStatusSkipped ServiceGetEntryStatus = \"skipped\"\n\tServiceGetEntryStatusTimeout ServiceGetEntryStatus = \"timeout\"\n)\n```\nDefines values for ServiceGetEntryStatus.\n\n```go\nfunc (e ServiceGetEntryStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the ServiceGetEntryStatus enum.\n\n```go\ntype ServiceGetResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []ServiceGetEntry   `json:\"results\"`\n}\n```\nServiceGetResponse defines model for ServiceGetResponse.\n\n```go\ntype ServiceInfo struct {\n\t// Description Service description from the unit file.\n\tDescription *string `json:\"description,omitempty\"`\n\n\t// Enabled Whether the service is enabled to start on boot.\n\tEnabled *bool `json:\"enabled,omitempty\"`\n\n\t// Name Service unit name.\n\tName *string `json:\"name,omitempty\"`\n\n\t// Pid Main process ID of the service.\n\tPid *int `json:\"pid,omitempty\"`\n\n\t// Status Active status of the service.\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nServiceInfo Information about a systemd service.\n\n```go\ntype ServiceListEntry struct {\n\t// Error Error message if the agent failed.\n\tError *string `json:\"error,omitempty\"`\n\n\t// Hostname Hostname of the agent that reported this entry.\n\tHostname string `json:\"hostname\"`\n\n\t// Services List of services on this host.\n\tServices *[]ServiceInfo `json:\"services,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus ServiceListEntryStatus `json:\"status\"`\n}\n```\nServiceListEntry Service list result for a single agent.\n\n```go\ntype ServiceListEntryStatus string\n```\nServiceListEntryStatus The status of the operation for this host.\n\n```go\nconst (\n\tServiceListEntryStatusFailed  ServiceListEntryStatus = \"failed\"\n\tServiceListEntryStatusOk      ServiceListEntryStatus = \"ok\"\n\tServiceListEntryStatusSkipped ServiceListEntryStatus = \"skipped\"\n\tServiceListEntryStatusTimeout ServiceListEntryStatus = \"timeout\"\n)\n```\nDefines values for ServiceListEntryStatus.\n\n```go\nfunc (e ServiceListEntryStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the ServiceListEntryStatus enum.\n\n```go\ntype ServiceListResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID `json:\"job_id,omitempty\"`\n\tResults []ServiceListEntry  `json:\"results\"`\n}\n```\nServiceListResponse defines model for ServiceListResponse.\n\n```go\ntype ServiceMutationEntry 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 Hostname of the agent that processed this operation.\n\tHostname string `json:\"hostname\"`\n\n\t// Name Service unit name.\n\tName *string `json:\"name,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus ServiceMutationEntryStatus `json:\"status\"`\n}\n```\nServiceMutationEntry Result of a service mutation or action operation for one host.\n\n```go\ntype ServiceMutationEntryStatus string\n```\nServiceMutationEntryStatus The status of the operation for this host.\n\n```go\nconst (\n\tFailed  ServiceMutationEntryStatus = \"failed\"\n\tOk      ServiceMutationEntryStatus = \"ok\"\n\tSkipped ServiceMutationEntryStatus = \"skipped\"\n\tTimeout ServiceMutationEntryStatus = \"timeout\"\n)\n```\nDefines values for ServiceMutationEntryStatus.\n\n```go\nfunc (e ServiceMutationEntryStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the ServiceMutationEntryStatus enum.\n\n```go\ntype ServiceMutationResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID    `json:\"job_id,omitempty\"`\n\tResults []ServiceMutationEntry `json:\"results\"`\n}\n```\nServiceMutationResponse defines model for ServiceMutationResponse.\n\n```go\ntype ServiceName = string\n```\nServiceName defines model for ServiceName.\n\n```go\ntype ServiceUpdateRequest struct {\n\t// Object Object Store reference for the new unit file.\n\tObject string `json:\"object\" validate:\"required,min=1\"`\n}\n```\nServiceUpdateRequest defines model for ServiceUpdateRequest.\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// List all services\n\t// (GET /api/node/{hostname}/service)\n\tGetNodeService(ctx context.Context, request GetNodeServiceRequestObject) (GetNodeServiceResponseObject, error)\n\t// Create a service unit file\n\t// (POST /api/node/{hostname}/service)\n\tPostNodeService(ctx context.Context, request PostNodeServiceRequestObject) (PostNodeServiceResponseObject, error)\n\t// Delete a service unit file\n\t// (DELETE /api/node/{hostname}/service/{name})\n\tDeleteNodeService(ctx context.Context, request DeleteNodeServiceRequestObject) (DeleteNodeServiceResponseObject, error)\n\t// Get service details\n\t// (GET /api/node/{hostname}/service/{name})\n\tGetNodeServiceByName(ctx context.Context, request GetNodeServiceByNameRequestObject) (GetNodeServiceByNameResponseObject, error)\n\t// Update a service unit file\n\t// (PUT /api/node/{hostname}/service/{name})\n\tPutNodeService(ctx context.Context, request PutNodeServiceRequestObject) (PutNodeServiceResponseObject, error)\n\t// Disable a service\n\t// (POST /api/node/{hostname}/service/{name}/disable)\n\tPostNodeServiceDisable(ctx context.Context, request PostNodeServiceDisableRequestObject) (PostNodeServiceDisableResponseObject, error)\n\t// Enable a service\n\t// (POST /api/node/{hostname}/service/{name}/enable)\n\tPostNodeServiceEnable(ctx context.Context, request PostNodeServiceEnableRequestObject) (PostNodeServiceEnableResponseObject, error)\n\t// Restart a service\n\t// (POST /api/node/{hostname}/service/{name}/restart)\n\tPostNodeServiceRestart(ctx context.Context, request PostNodeServiceRestartRequestObject) (PostNodeServiceRestartResponseObject, error)\n\t// Start a service\n\t// (POST /api/node/{hostname}/service/{name}/start)\n\tPostNodeServiceStart(ctx context.Context, request PostNodeServiceStartRequestObject) (PostNodeServiceStartResponseObject, error)\n\t// Stop a service\n\t// (POST /api/node/{hostname}/service/{name}/stop)\n\tPostNodeServiceStop(ctx context.Context, request PostNodeServiceStopRequestObject) (PostNodeServiceStopResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/service/gen","name":"gen","synopsis":"Package gen contains generated code for the service API.","isRedistributable":true}
