{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package schedule\n\nPackage schedule provides schedule-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 Schedule route registration functions.\n\n## Types\n\n```go\ntype Schedule struct {\n\t// JobClient provides job-based operations for schedule management.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nSchedule implementation of the Schedule APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Schedule\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Schedule) DeleteNodeSchedule(\n\tctx context.Context,\n\trequest gen.DeleteNodeScheduleRequestObject,\n) (gen.DeleteNodeScheduleResponseObject, error)\n```\nDeleteNodeSchedule deletes a cron entry on a target node.\n\n```go\nfunc (s *Schedule) GetNodeSchedule(\n\tctx context.Context,\n\trequest gen.GetNodeScheduleRequestObject,\n) (gen.GetNodeScheduleResponseObject, error)\n```\nGetNodeSchedule lists all cron entries on a target node.\n\n```go\nfunc (s *Schedule) GetNodeScheduleByName(\n\tctx context.Context,\n\trequest gen.GetNodeScheduleByNameRequestObject,\n) (gen.GetNodeScheduleByNameResponseObject, error)\n```\nGetNodeScheduleByName gets a single cron entry by name on a target node.\n\n```go\nfunc (s *Schedule) PostNodeSchedule(\n\tctx context.Context,\n\trequest gen.PostNodeScheduleRequestObject,\n) (gen.PostNodeScheduleResponseObject, error)\n```\nPostNodeSchedule creates a cron entry on a target node.\n\n```go\nfunc (s *Schedule) PutNodeSchedule(\n\tctx context.Context,\n\trequest gen.PutNodeScheduleRequestObject,\n) (gen.PutNodeScheduleResponseObject, error)\n```\nPutNodeSchedule updates a cron entry on a target node.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/schedule","name":"schedule","synopsis":"Package schedule provides schedule-related API handlers.","isRedistributable":true}
