{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package certificate\n\nPackage certificate provides certificate-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 Certificate route registration functions.\n\n## Types\n\n```go\ntype Certificate struct {\n\t// JobClient provides job-based operations for certificate management.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nCertificate implementation of the Certificate APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Certificate\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Certificate) DeleteNodeCertificateCa(\n\tctx context.Context,\n\trequest gen.DeleteNodeCertificateCaRequestObject,\n) (gen.DeleteNodeCertificateCaResponseObject, error)\n```\nDeleteNodeCertificateCa deletes a CA certificate on a target node.\n\n```go\nfunc (s *Certificate) GetNodeCertificateCa(\n\tctx context.Context,\n\trequest gen.GetNodeCertificateCaRequestObject,\n) (gen.GetNodeCertificateCaResponseObject, error)\n```\nGetNodeCertificateCa lists all CA certificates on a target node.\n\n```go\nfunc (s *Certificate) PostNodeCertificateCa(\n\tctx context.Context,\n\trequest gen.PostNodeCertificateCaRequestObject,\n) (gen.PostNodeCertificateCaResponseObject, error)\n```\nPostNodeCertificateCa creates a CA certificate on a target node.\n\n```go\nfunc (s *Certificate) PutNodeCertificateCa(\n\tctx context.Context,\n\trequest gen.PutNodeCertificateCaRequestObject,\n) (gen.PutNodeCertificateCaResponseObject, error)\n```\nPutNodeCertificateCa updates a CA certificate on a target node.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/certificate","name":"certificate","synopsis":"Package certificate provides certificate-related API handlers.","isRedistributable":true}
