{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package log\n\nPackage log provides log management 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 Log route registration functions.\n\n## Types\n\n```go\ntype Log struct {\n\t// JobClient provides job-based operations for log management.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nLog implementation of the Log APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Log\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Log) GetNodeLog(\n\tctx context.Context,\n\trequest gen.GetNodeLogRequestObject,\n) (gen.GetNodeLogResponseObject, error)\n```\nGetNodeLog returns system log entries from a target node.\n\n```go\nfunc (s *Log) GetNodeLogSource(\n\tctx context.Context,\n\trequest gen.GetNodeLogSourceRequestObject,\n) (gen.GetNodeLogSourceResponseObject, error)\n```\nGetNodeLogSource returns unique syslog identifiers from a target node.\n\n```go\nfunc (s *Log) GetNodeLogUnit(\n\tctx context.Context,\n\trequest gen.GetNodeLogUnitRequestObject,\n) (gen.GetNodeLogUnitResponseObject, error)\n```\nGetNodeLogUnit returns log entries for a specific systemd unit from a target node.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/log","name":"log","synopsis":"Package log provides log management API handlers.","isRedistributable":true}
