{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ntp\n\nPackage ntp provides NTP-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 NTP route registration functions.\n\n## Types\n\n```go\ntype Ntp struct {\n\t// JobClient provides job-based operations for NTP management.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nNtp implementation of the NTP APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Ntp\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Ntp) DeleteNodeNtp(\n\tctx context.Context,\n\trequest gen.DeleteNodeNtpRequestObject,\n) (gen.DeleteNodeNtpResponseObject, error)\n```\nDeleteNodeNtp deletes a managed NTP configuration on a target node.\n\n```go\nfunc (s *Ntp) GetNodeNtp(\n\tctx context.Context,\n\trequest gen.GetNodeNtpRequestObject,\n) (gen.GetNodeNtpResponseObject, error)\n```\nGetNodeNtp gets NTP sync status and configured servers on a target node.\n\n```go\nfunc (s *Ntp) PostNodeNtp(\n\tctx context.Context,\n\trequest gen.PostNodeNtpRequestObject,\n) (gen.PostNodeNtpResponseObject, error)\n```\nPostNodeNtp creates an NTP configuration on a target node.\n\n```go\nfunc (s *Ntp) PutNodeNtp(\n\tctx context.Context,\n\trequest gen.PutNodeNtpRequestObject,\n) (gen.PutNodeNtpResponseObject, error)\n```\nPutNodeNtp updates an existing NTP configuration on a target node.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/ntp","name":"ntp","synopsis":"Package ntp provides NTP-related API handlers.","isRedistributable":true}
