{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\nPackage command provides command execution 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 Command route registration functions.\n\n## Types\n\n```go\ntype Command struct {\n\t// JobClient provides job-based operations for command execution.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nCommand implementation of the Command APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Command\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Command) PostNodeCommandExec(\n\tctx context.Context,\n\trequest gen.PostNodeCommandExecRequestObject,\n) (gen.PostNodeCommandExecResponseObject, error)\n```\nPostNodeCommandExec post the node command exec API endpoint.\n\n```go\nfunc (s *Command) PostNodeCommandShell(\n\tctx context.Context,\n\trequest gen.PostNodeCommandShellRequestObject,\n) (gen.PostNodeCommandShellResponseObject, error)\n```\nPostNodeCommandShell post the node command shell API endpoint.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/command","name":"command","synopsis":"Package command provides command execution API handlers.","isRedistributable":true}
