{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package process\n\nPackage process provides process 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 Process route registration functions.\n\n## Types\n\n```go\ntype Process struct {\n\t// JobClient provides job-based operations for process management.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nProcess implementation of the Process APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *Process\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *Process) GetNodeProcess(\n\tctx context.Context,\n\trequest gen.GetNodeProcessRequestObject,\n) (gen.GetNodeProcessResponseObject, error)\n```\nGetNodeProcess lists processes on a target node.\n\n```go\nfunc (s *Process) GetNodeProcessByPid(\n\tctx context.Context,\n\trequest gen.GetNodeProcessByPidRequestObject,\n) (gen.GetNodeProcessByPidResponseObject, error)\n```\nGetNodeProcessByPid gets a process by PID on a target node.\n\n```go\nfunc (s *Process) PostNodeProcessSignal(\n\tctx context.Context,\n\trequest gen.PostNodeProcessSignalRequestObject,\n) (gen.PostNodeProcessSignalResponseObject, error)\n```\nPostNodeProcessSignal sends a signal to a process on a target node.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/process","name":"process","synopsis":"Package process provides process management API handlers.","isRedistributable":true}
