{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gen\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\nPackage gen contains generated code for the certificate API.\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 CertName = string\n```\nCertName defines model for CertName.\n\n```go\ntype CertificateCACollectionResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID  `json:\"job_id,omitempty\"`\n\tResults []CertificateCAEntry `json:\"results\"`\n}\n```\nCertificateCACollectionResponse defines model for CertificateCACollectionResponse.\n\n```go\ntype CertificateCACreateRequest struct {\n\t// Name Certificate name (used as filename).\n\tName string `json:\"name\" validate:\"required,min=1\"`\n\n\t// Object Object Store reference for the PEM file.\n\tObject string `json:\"object\" validate:\"required,min=1\"`\n}\n```\nCertificateCACreateRequest defines model for CertificateCACreateRequest.\n\n```go\ntype CertificateCAEntry struct {\n\t// Certificates List of CA certificates on this host.\n\tCertificates *[]CertificateCAInfo `json:\"certificates,omitempty\"`\n\n\t// Error Error message if the agent failed to retrieve certificates.\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// Status The status of the operation for this host.\n\tStatus CertificateCAEntryStatus `json:\"status\"`\n}\n```\nCertificateCAEntry List result for CA certificates on one host.\n\n```go\ntype CertificateCAEntryStatus string\n```\nCertificateCAEntryStatus The status of the operation for this host.\n\n```go\nconst (\n\tCertificateCAEntryStatusFailed  CertificateCAEntryStatus = \"failed\"\n\tCertificateCAEntryStatusOk      CertificateCAEntryStatus = \"ok\"\n\tCertificateCAEntryStatusSkipped CertificateCAEntryStatus = \"skipped\"\n\tCertificateCAEntryStatusTimeout CertificateCAEntryStatus = \"timeout\"\n)\n```\nDefines values for CertificateCAEntryStatus.\n\n```go\nfunc (e CertificateCAEntryStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the CertificateCAEntryStatus enum.\n\n```go\ntype CertificateCAInfo struct {\n\t// Name Certificate name.\n\tName *string `json:\"name,omitempty\"`\n\n\t// Object Object store name for the deployed content.\n\tObject *string `json:\"object,omitempty\"`\n\n\t// Source Where the certificate originated: \"system\" for distribution-provided, \"custom\" for user-installed.\n\tSource *CertificateCAInfoSource `json:\"source,omitempty\"`\n}\n```\nCertificateCAInfo A CA certificate entry.\n\n```go\ntype CertificateCAInfoSource string\n```\nCertificateCAInfoSource Where the certificate originated: \"system\" for distribution-provided, \"custom\" for user-installed.\n\n```go\nconst (\n\tCustom CertificateCAInfoSource = \"custom\"\n\tSystem CertificateCAInfoSource = \"system\"\n)\n```\nDefines values for CertificateCAInfoSource.\n\n```go\nfunc (e CertificateCAInfoSource) Valid() bool\n```\nValid indicates whether the value is a known member of the CertificateCAInfoSource enum.\n\n```go\ntype CertificateCAMutationEntry 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 Certificate name.\n\tName *string `json:\"name,omitempty\"`\n\n\t// Status The status of the operation for this host.\n\tStatus CertificateCAMutationEntryStatus `json:\"status\"`\n}\n```\nCertificateCAMutationEntry Result of a CA certificate create, update, or delete operation for one host.\n\n```go\ntype CertificateCAMutationEntryStatus string\n```\nCertificateCAMutationEntryStatus The status of the operation for this host.\n\n```go\nconst (\n\tCertificateCAMutationEntryStatusFailed  CertificateCAMutationEntryStatus = \"failed\"\n\tCertificateCAMutationEntryStatusOk      CertificateCAMutationEntryStatus = \"ok\"\n\tCertificateCAMutationEntryStatusSkipped CertificateCAMutationEntryStatus = \"skipped\"\n\tCertificateCAMutationEntryStatusTimeout CertificateCAMutationEntryStatus = \"timeout\"\n)\n```\nDefines values for CertificateCAMutationEntryStatus.\n\n```go\nfunc (e CertificateCAMutationEntryStatus) Valid() bool\n```\nValid indicates whether the value is a known member of the CertificateCAMutationEntryStatus enum.\n\n```go\ntype CertificateCAMutationResponse struct {\n\t// JobId The job ID used to process this request.\n\tJobId   *openapi_types.UUID          `json:\"job_id,omitempty\"`\n\tResults []CertificateCAMutationEntry `json:\"results\"`\n}\n```\nCertificateCAMutationResponse defines model for CertificateCAMutationResponse.\n\n```go\ntype CertificateCAUpdateRequest struct {\n\t// Object Object Store reference for the new PEM file.\n\tObject string `json:\"object\" validate:\"required,min=1\"`\n}\n```\nCertificateCAUpdateRequest defines model for CertificateCAUpdateRequest.\n\n```go\ntype DeleteNodeCertificateCa200JSONResponse CertificateCAMutationResponse\n```\n\n```go\nfunc (response DeleteNodeCertificateCa200JSONResponse) VisitDeleteNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeCertificateCa400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeCertificateCa400JSONResponse) VisitDeleteNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeCertificateCa401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeCertificateCa401JSONResponse) VisitDeleteNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeCertificateCa403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeCertificateCa403JSONResponse) VisitDeleteNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeCertificateCa500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response DeleteNodeCertificateCa500JSONResponse) VisitDeleteNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNodeCertificateCaRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     CertName `json:\"name\" validate:\"required,min=1\"`\n}\n```\n\n```go\ntype DeleteNodeCertificateCaResponseObject interface {\n\tVisitDeleteNodeCertificateCaResponse(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 GetNodeCertificateCa200JSONResponse CertificateCACollectionResponse\n```\n\n```go\nfunc (response GetNodeCertificateCa200JSONResponse) VisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeCertificateCa400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeCertificateCa400JSONResponse) VisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeCertificateCa401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeCertificateCa401JSONResponse) VisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeCertificateCa403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeCertificateCa403JSONResponse) VisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeCertificateCa500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response GetNodeCertificateCa500JSONResponse) VisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNodeCertificateCaRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n}\n```\n\n```go\ntype GetNodeCertificateCaResponseObject interface {\n\tVisitGetNodeCertificateCaResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Hostname = string\n```\nHostname defines model for Hostname.\n\n```go\ntype PostNodeCertificateCa200JSONResponse CertificateCAMutationResponse\n```\n\n```go\nfunc (response PostNodeCertificateCa200JSONResponse) VisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeCertificateCa400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeCertificateCa400JSONResponse) VisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeCertificateCa401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeCertificateCa401JSONResponse) VisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeCertificateCa403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeCertificateCa403JSONResponse) VisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeCertificateCa500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PostNodeCertificateCa500JSONResponse) VisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostNodeCertificateCaJSONRequestBody = CertificateCACreateRequest\n```\nPostNodeCertificateCaJSONRequestBody defines body for PostNodeCertificateCa for application/json ContentType.\n\n```go\ntype PostNodeCertificateCaRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tBody     *PostNodeCertificateCaJSONRequestBody\n}\n```\n\n```go\ntype PostNodeCertificateCaResponseObject interface {\n\tVisitPostNodeCertificateCaResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PutNodeCertificateCa200JSONResponse CertificateCAMutationResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa200JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCa400JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa400JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCa401JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa401JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCa403JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa403JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCa404JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa404JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCa500JSONResponse externalRef0.ErrorResponse\n```\n\n```go\nfunc (response PutNodeCertificateCa500JSONResponse) VisitPutNodeCertificateCaResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutNodeCertificateCaJSONRequestBody = CertificateCAUpdateRequest\n```\nPutNodeCertificateCaJSONRequestBody defines body for PutNodeCertificateCa for application/json ContentType.\n\n```go\ntype PutNodeCertificateCaRequestObject struct {\n\tHostname Hostname `json:\"hostname\" validate:\"required,min=1,valid_target\"`\n\tName     CertName `json:\"name\" validate:\"required,min=1\"`\n\tBody     *PutNodeCertificateCaJSONRequestBody\n}\n```\n\n```go\ntype PutNodeCertificateCaResponseObject interface {\n\tVisitPutNodeCertificateCaResponse(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 CA certificates\n\t// (GET /api/node/{hostname}/certificate/ca)\n\tGetNodeCertificateCa(ctx *echo.Context, hostname Hostname) error\n\t// Create a CA certificate\n\t// (POST /api/node/{hostname}/certificate/ca)\n\tPostNodeCertificateCa(ctx *echo.Context, hostname Hostname) error\n\t// Delete a CA certificate\n\t// (DELETE /api/node/{hostname}/certificate/ca/{name})\n\tDeleteNodeCertificateCa(ctx *echo.Context, hostname Hostname, name CertName) error\n\t// Update a CA certificate\n\t// (PUT /api/node/{hostname}/certificate/ca/{name})\n\tPutNodeCertificateCa(ctx *echo.Context, hostname Hostname, name CertName) 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) DeleteNodeCertificateCa(ctx *echo.Context) error\n```\nDeleteNodeCertificateCa converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNodeCertificateCa(ctx *echo.Context) error\n```\nGetNodeCertificateCa converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PostNodeCertificateCa(ctx *echo.Context) error\n```\nPostNodeCertificateCa converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) PutNodeCertificateCa(ctx *echo.Context) error\n```\nPutNodeCertificateCa 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// List all CA certificates\n\t// (GET /api/node/{hostname}/certificate/ca)\n\tGetNodeCertificateCa(ctx context.Context, request GetNodeCertificateCaRequestObject) (GetNodeCertificateCaResponseObject, error)\n\t// Create a CA certificate\n\t// (POST /api/node/{hostname}/certificate/ca)\n\tPostNodeCertificateCa(ctx context.Context, request PostNodeCertificateCaRequestObject) (PostNodeCertificateCaResponseObject, error)\n\t// Delete a CA certificate\n\t// (DELETE /api/node/{hostname}/certificate/ca/{name})\n\tDeleteNodeCertificateCa(ctx context.Context, request DeleteNodeCertificateCaRequestObject) (DeleteNodeCertificateCaResponseObject, error)\n\t// Update a CA certificate\n\t// (PUT /api/node/{hostname}/certificate/ca/{name})\n\tPutNodeCertificateCa(ctx context.Context, request PutNodeCertificateCaRequestObject) (PutNodeCertificateCaResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/certificate/gen","name":"gen","synopsis":"Package gen provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
