Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNodeAgentServer(s grpc.ServiceRegistrar, srv NodeAgentServer)
- type CancelJobRequest
- func (*CancelJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelJobRequest) GetForce() bool
- func (x *CancelJobRequest) GetJobId() string
- func (*CancelJobRequest) ProtoMessage()
- func (x *CancelJobRequest) ProtoReflect() protoreflect.Message
- func (x *CancelJobRequest) Reset()
- func (x *CancelJobRequest) String() string
- type CancelJobResponse
- type DeleteJobRequest
- type DeleteJobResponse
- type ExecuteRequest
- func (*ExecuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteRequest) GetCommand() string
- func (x *ExecuteRequest) GetDetach() bool
- func (x *ExecuteRequest) GetEnv() map[string]string
- func (x *ExecuteRequest) GetShell() string
- func (x *ExecuteRequest) GetTimeoutSeconds() int32
- func (x *ExecuteRequest) GetWorkingDir() string
- func (*ExecuteRequest) ProtoMessage()
- func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteRequest) Reset()
- func (x *ExecuteRequest) String() string
- type ExecuteResponse
- func (*ExecuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResponse) GetData() []byte
- func (x *ExecuteResponse) GetDone() bool
- func (x *ExecuteResponse) GetExitCode() int32
- func (x *ExecuteResponse) GetJobId() string
- func (x *ExecuteResponse) GetPid() int32
- func (x *ExecuteResponse) GetStream() ExecuteResponse_Stream
- func (*ExecuteResponse) ProtoMessage()
- func (x *ExecuteResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteResponse) Reset()
- func (x *ExecuteResponse) String() string
- type ExecuteResponse_Stream
- func (ExecuteResponse_Stream) Descriptor() protoreflect.EnumDescriptor
- func (x ExecuteResponse_Stream) Enum() *ExecuteResponse_Stream
- func (ExecuteResponse_Stream) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExecuteResponse_Stream) Number() protoreflect.EnumNumber
- func (x ExecuteResponse_Stream) String() string
- func (ExecuteResponse_Stream) Type() protoreflect.EnumType
- type ExecuteScriptRequest
- func (*ExecuteScriptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteScriptRequest) GetArgs() []string
- func (x *ExecuteScriptRequest) GetEnv() map[string]string
- func (x *ExecuteScriptRequest) GetScriptBody() string
- func (x *ExecuteScriptRequest) GetShell() string
- func (x *ExecuteScriptRequest) GetTimeoutSeconds() int32
- func (x *ExecuteScriptRequest) GetWorkingDir() string
- func (*ExecuteScriptRequest) ProtoMessage()
- func (x *ExecuteScriptRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteScriptRequest) Reset()
- func (x *ExecuteScriptRequest) String() string
- type ForwardChunk
- func (*ForwardChunk) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardChunk) GetClose() bool
- func (x *ForwardChunk) GetData() []byte
- func (x *ForwardChunk) GetTargetAddr() string
- func (*ForwardChunk) ProtoMessage()
- func (x *ForwardChunk) ProtoReflect() protoreflect.Message
- func (x *ForwardChunk) Reset()
- func (x *ForwardChunk) String() string
- type GetInfoRequest
- type GetInfoResponse
- func (*GetInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInfoResponse) GetAgentVersion() string
- func (x *GetInfoResponse) GetArch() string
- func (x *GetInfoResponse) GetCpuCount() int32
- func (x *GetInfoResponse) GetHostname() string
- func (x *GetInfoResponse) GetMemoryBytes() int64
- func (x *GetInfoResponse) GetOs() string
- func (*GetInfoResponse) ProtoMessage()
- func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetInfoResponse) Reset()
- func (x *GetInfoResponse) String() string
- type GetJobOutputRequest
- func (*GetJobOutputRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobOutputRequest) GetJobId() string
- func (x *GetJobOutputRequest) GetMaxBytes() int64
- func (x *GetJobOutputRequest) GetStream() GetJobOutputRequest_Stream
- func (x *GetJobOutputRequest) GetTailLines() int32
- func (*GetJobOutputRequest) ProtoMessage()
- func (x *GetJobOutputRequest) ProtoReflect() protoreflect.Message
- func (x *GetJobOutputRequest) Reset()
- func (x *GetJobOutputRequest) String() string
- type GetJobOutputRequest_Stream
- func (GetJobOutputRequest_Stream) Descriptor() protoreflect.EnumDescriptor
- func (x GetJobOutputRequest_Stream) Enum() *GetJobOutputRequest_Stream
- func (GetJobOutputRequest_Stream) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetJobOutputRequest_Stream) Number() protoreflect.EnumNumber
- func (x GetJobOutputRequest_Stream) String() string
- func (GetJobOutputRequest_Stream) Type() protoreflect.EnumType
- type GetJobOutputResponse
- func (*GetJobOutputResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobOutputResponse) GetStderr() []byte
- func (x *GetJobOutputResponse) GetStderrTotalBytes() int64
- func (x *GetJobOutputResponse) GetStdout() []byte
- func (x *GetJobOutputResponse) GetStdoutTotalBytes() int64
- func (x *GetJobOutputResponse) GetTruncated() bool
- func (*GetJobOutputResponse) ProtoMessage()
- func (x *GetJobOutputResponse) ProtoReflect() protoreflect.Message
- func (x *GetJobOutputResponse) Reset()
- func (x *GetJobOutputResponse) String() string
- type GetJobRequest
- type GetJobResponse
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetCommand() string
- func (x *Job) GetEndedAt() string
- func (x *Job) GetEnv() map[string]string
- func (x *Job) GetError() string
- func (x *Job) GetExitCode() int32
- func (x *Job) GetJobId() string
- func (x *Job) GetPid() int32
- func (x *Job) GetShell() string
- func (x *Job) GetStartedAt() string
- func (x *Job) GetStatus() JobStatus
- func (x *Job) GetStderrBytes() int64
- func (x *Job) GetStdoutBytes() int64
- func (x *Job) GetWorkingDir() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type JobEvent
- func (*JobEvent) Descriptor() ([]byte, []int)deprecated
- func (x *JobEvent) GetJob() *Job
- func (x *JobEvent) GetJobId() string
- func (x *JobEvent) GetKind() JobEvent_Kind
- func (*JobEvent) ProtoMessage()
- func (x *JobEvent) ProtoReflect() protoreflect.Message
- func (x *JobEvent) Reset()
- func (x *JobEvent) String() string
- type JobEvent_Kind
- func (JobEvent_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x JobEvent_Kind) Enum() *JobEvent_Kind
- func (JobEvent_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x JobEvent_Kind) Number() protoreflect.EnumNumber
- func (x JobEvent_Kind) String() string
- func (JobEvent_Kind) Type() protoreflect.EnumType
- type JobStatus
- type KillProcessRequest
- func (*KillProcessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KillProcessRequest) GetForce() bool
- func (x *KillProcessRequest) GetPid() int32
- func (*KillProcessRequest) ProtoMessage()
- func (x *KillProcessRequest) ProtoReflect() protoreflect.Message
- func (x *KillProcessRequest) Reset()
- func (x *KillProcessRequest) String() string
- type KillProcessResponse
- func (*KillProcessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KillProcessResponse) GetMessage() string
- func (x *KillProcessResponse) GetSuccess() bool
- func (*KillProcessResponse) ProtoMessage()
- func (x *KillProcessResponse) ProtoReflect() protoreflect.Message
- func (x *KillProcessResponse) Reset()
- func (x *KillProcessResponse) String() string
- type ListJobsRequest
- func (*ListJobsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobsRequest) GetLimit() int32
- func (x *ListJobsRequest) GetStatusFilter() JobStatus
- func (*ListJobsRequest) ProtoMessage()
- func (x *ListJobsRequest) ProtoReflect() protoreflect.Message
- func (x *ListJobsRequest) Reset()
- func (x *ListJobsRequest) String() string
- type ListJobsResponse
- type ListProcessesRequest
- func (*ListProcessesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProcessesRequest) GetNameFilter() string
- func (*ListProcessesRequest) ProtoMessage()
- func (x *ListProcessesRequest) ProtoReflect() protoreflect.Message
- func (x *ListProcessesRequest) Reset()
- func (x *ListProcessesRequest) String() string
- type ListProcessesResponse
- func (*ListProcessesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProcessesResponse) GetProcesses() []*ProcessInfo
- func (*ListProcessesResponse) ProtoMessage()
- func (x *ListProcessesResponse) ProtoReflect() protoreflect.Message
- func (x *ListProcessesResponse) Reset()
- func (x *ListProcessesResponse) String() string
- type NodeAgentClient
- type NodeAgentServer
- type NodeAgent_ExecuteClient
- type NodeAgent_ExecuteScriptClient
- type NodeAgent_ExecuteScriptServer
- type NodeAgent_ExecuteServer
- type NodeAgent_ForwardClient
- type NodeAgent_ForwardServer
- type NodeAgent_PullFileClient
- type NodeAgent_PullFileServer
- type NodeAgent_PushFileClient
- type NodeAgent_PushFileServer
- type NodeAgent_WatchJobsClient
- type NodeAgent_WatchJobsServer
- type ProcessInfo
- func (*ProcessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessInfo) GetCommandLine() string
- func (x *ProcessInfo) GetCpuPercent() float64
- func (x *ProcessInfo) GetMemoryBytes() int64
- func (x *ProcessInfo) GetName() string
- func (x *ProcessInfo) GetPid() int32
- func (*ProcessInfo) ProtoMessage()
- func (x *ProcessInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessInfo) Reset()
- func (x *ProcessInfo) String() string
- type PullFileRequest
- type PullFileResponse
- func (*PullFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PullFileResponse) GetChunk() []byte
- func (x *PullFileResponse) GetTotalSize() int64
- func (*PullFileResponse) ProtoMessage()
- func (x *PullFileResponse) ProtoReflect() protoreflect.Message
- func (x *PullFileResponse) Reset()
- func (x *PullFileResponse) String() string
- type PushFileRequest
- func (*PushFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushFileRequest) GetChunk() []byte
- func (x *PushFileRequest) GetFileSize() int64
- func (x *PushFileRequest) GetIsLast() bool
- func (x *PushFileRequest) GetRemotePath() string
- func (*PushFileRequest) ProtoMessage()
- func (x *PushFileRequest) ProtoReflect() protoreflect.Message
- func (x *PushFileRequest) Reset()
- func (x *PushFileRequest) String() string
- type PushFileResponse
- func (*PushFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PushFileResponse) GetBytesWritten() int64
- func (x *PushFileResponse) GetRemotePath() string
- func (*PushFileResponse) ProtoMessage()
- func (x *PushFileResponse) ProtoReflect() protoreflect.Message
- func (x *PushFileResponse) Reset()
- func (x *PushFileResponse) String() string
- type UnimplementedNodeAgentServer
- func (UnimplementedNodeAgentServer) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
- func (UnimplementedNodeAgentServer) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error)
- func (UnimplementedNodeAgentServer) Execute(*ExecuteRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
- func (UnimplementedNodeAgentServer) ExecuteScript(*ExecuteScriptRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
- func (UnimplementedNodeAgentServer) Forward(grpc.BidiStreamingServer[ForwardChunk, ForwardChunk]) error
- func (UnimplementedNodeAgentServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
- func (UnimplementedNodeAgentServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
- func (UnimplementedNodeAgentServer) GetJobOutput(context.Context, *GetJobOutputRequest) (*GetJobOutputResponse, error)
- func (UnimplementedNodeAgentServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error)
- func (UnimplementedNodeAgentServer) ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
- func (UnimplementedNodeAgentServer) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
- func (UnimplementedNodeAgentServer) PullFile(*PullFileRequest, grpc.ServerStreamingServer[PullFileResponse]) error
- func (UnimplementedNodeAgentServer) PushFile(grpc.ClientStreamingServer[PushFileRequest, PushFileResponse]) error
- func (UnimplementedNodeAgentServer) WatchJobs(*WatchJobsRequest, grpc.ServerStreamingServer[JobEvent]) error
- type UnsafeNodeAgentServer
- type WatchJobsRequest
Constants ¶
const ( NodeAgent_Execute_FullMethodName = "/agent.NodeAgent/Execute" NodeAgent_ExecuteScript_FullMethodName = "/agent.NodeAgent/ExecuteScript" NodeAgent_PushFile_FullMethodName = "/agent.NodeAgent/PushFile" NodeAgent_PullFile_FullMethodName = "/agent.NodeAgent/PullFile" NodeAgent_ListProcesses_FullMethodName = "/agent.NodeAgent/ListProcesses" NodeAgent_KillProcess_FullMethodName = "/agent.NodeAgent/KillProcess" NodeAgent_GetInfo_FullMethodName = "/agent.NodeAgent/GetInfo" NodeAgent_ListJobs_FullMethodName = "/agent.NodeAgent/ListJobs" NodeAgent_GetJob_FullMethodName = "/agent.NodeAgent/GetJob" NodeAgent_GetJobOutput_FullMethodName = "/agent.NodeAgent/GetJobOutput" NodeAgent_CancelJob_FullMethodName = "/agent.NodeAgent/CancelJob" NodeAgent_DeleteJob_FullMethodName = "/agent.NodeAgent/DeleteJob" NodeAgent_WatchJobs_FullMethodName = "/agent.NodeAgent/WatchJobs" NodeAgent_Forward_FullMethodName = "/agent.NodeAgent/Forward" )
Variables ¶
var ( JobStatus_name = map[int32]string{ 0: "JOB_STATUS_UNSPECIFIED", 1: "JOB_STATUS_RUNNING", 2: "JOB_STATUS_EXITED", 3: "JOB_STATUS_CANCELED", 4: "JOB_STATUS_ORPHANED", } JobStatus_value = map[string]int32{ "JOB_STATUS_UNSPECIFIED": 0, "JOB_STATUS_RUNNING": 1, "JOB_STATUS_EXITED": 2, "JOB_STATUS_CANCELED": 3, "JOB_STATUS_ORPHANED": 4, } )
Enum value maps for JobStatus.
var ( ExecuteResponse_Stream_name = map[int32]string{ 0: "STDOUT", 1: "STDERR", } ExecuteResponse_Stream_value = map[string]int32{ "STDOUT": 0, "STDERR": 1, } )
Enum value maps for ExecuteResponse_Stream.
var ( GetJobOutputRequest_Stream_name = map[int32]string{ 0: "BOTH", 1: "STDOUT", 2: "STDERR", } GetJobOutputRequest_Stream_value = map[string]int32{ "BOTH": 0, "STDOUT": 1, "STDERR": 2, } )
Enum value maps for GetJobOutputRequest_Stream.
var ( JobEvent_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "SNAPSHOT", 2: "STARTED", 3: "UPDATED", 4: "COMPLETED", 5: "DELETED", } JobEvent_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "SNAPSHOT": 1, "STARTED": 2, "UPDATED": 3, "COMPLETED": 4, "DELETED": 5, } )
Enum value maps for JobEvent_Kind.
var File_proto_agent_agent_proto protoreflect.FileDescriptor
var NodeAgent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agent.NodeAgent", HandlerType: (*NodeAgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListProcesses", Handler: _NodeAgent_ListProcesses_Handler, }, { MethodName: "KillProcess", Handler: _NodeAgent_KillProcess_Handler, }, { MethodName: "GetInfo", Handler: _NodeAgent_GetInfo_Handler, }, { MethodName: "ListJobs", Handler: _NodeAgent_ListJobs_Handler, }, { MethodName: "GetJob", Handler: _NodeAgent_GetJob_Handler, }, { MethodName: "GetJobOutput", Handler: _NodeAgent_GetJobOutput_Handler, }, { MethodName: "CancelJob", Handler: _NodeAgent_CancelJob_Handler, }, { MethodName: "DeleteJob", Handler: _NodeAgent_DeleteJob_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Execute", Handler: _NodeAgent_Execute_Handler, ServerStreams: true, }, { StreamName: "ExecuteScript", Handler: _NodeAgent_ExecuteScript_Handler, ServerStreams: true, }, { StreamName: "PushFile", Handler: _NodeAgent_PushFile_Handler, ClientStreams: true, }, { StreamName: "PullFile", Handler: _NodeAgent_PullFile_Handler, ServerStreams: true, }, { StreamName: "WatchJobs", Handler: _NodeAgent_WatchJobs_Handler, ServerStreams: true, }, { StreamName: "Forward", Handler: _NodeAgent_Forward_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/agent/agent.proto", }
NodeAgent_ServiceDesc is the grpc.ServiceDesc for NodeAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeAgentServer ¶
func RegisterNodeAgentServer(s grpc.ServiceRegistrar, srv NodeAgentServer)
Types ¶
type CancelJobRequest ¶ added in v0.2.0
type CancelJobRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // Force-terminate (taskkill /F / SIGKILL)
// contains filtered or unexported fields
}
func (*CancelJobRequest) Descriptor
deprecated
added in
v0.2.0
func (*CancelJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelJobRequest.ProtoReflect.Descriptor instead.
func (*CancelJobRequest) GetForce ¶ added in v0.2.0
func (x *CancelJobRequest) GetForce() bool
func (*CancelJobRequest) GetJobId ¶ added in v0.2.0
func (x *CancelJobRequest) GetJobId() string
func (*CancelJobRequest) ProtoMessage ¶ added in v0.2.0
func (*CancelJobRequest) ProtoMessage()
func (*CancelJobRequest) ProtoReflect ¶ added in v0.2.0
func (x *CancelJobRequest) ProtoReflect() protoreflect.Message
func (*CancelJobRequest) Reset ¶ added in v0.2.0
func (x *CancelJobRequest) Reset()
func (*CancelJobRequest) String ¶ added in v0.2.0
func (x *CancelJobRequest) String() string
type CancelJobResponse ¶ added in v0.2.0
type CancelJobResponse struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // Updated job meta
// contains filtered or unexported fields
}
func (*CancelJobResponse) Descriptor
deprecated
added in
v0.2.0
func (*CancelJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelJobResponse.ProtoReflect.Descriptor instead.
func (*CancelJobResponse) GetJob ¶ added in v0.2.0
func (x *CancelJobResponse) GetJob() *Job
func (*CancelJobResponse) ProtoMessage ¶ added in v0.2.0
func (*CancelJobResponse) ProtoMessage()
func (*CancelJobResponse) ProtoReflect ¶ added in v0.2.0
func (x *CancelJobResponse) ProtoReflect() protoreflect.Message
func (*CancelJobResponse) Reset ¶ added in v0.2.0
func (x *CancelJobResponse) Reset()
func (*CancelJobResponse) String ¶ added in v0.2.0
func (x *CancelJobResponse) String() string
type DeleteJobRequest ¶ added in v0.2.0
type DeleteJobRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteJobRequest) Descriptor
deprecated
added in
v0.2.0
func (*DeleteJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.
func (*DeleteJobRequest) GetJobId ¶ added in v0.2.0
func (x *DeleteJobRequest) GetJobId() string
func (*DeleteJobRequest) ProtoMessage ¶ added in v0.2.0
func (*DeleteJobRequest) ProtoMessage()
func (*DeleteJobRequest) ProtoReflect ¶ added in v0.2.0
func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message
func (*DeleteJobRequest) Reset ¶ added in v0.2.0
func (x *DeleteJobRequest) Reset()
func (*DeleteJobRequest) String ¶ added in v0.2.0
func (x *DeleteJobRequest) String() string
type DeleteJobResponse ¶ added in v0.2.0
type DeleteJobResponse struct {
Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteJobResponse) Descriptor
deprecated
added in
v0.2.0
func (*DeleteJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobResponse.ProtoReflect.Descriptor instead.
func (*DeleteJobResponse) GetDeleted ¶ added in v0.2.0
func (x *DeleteJobResponse) GetDeleted() bool
func (*DeleteJobResponse) ProtoMessage ¶ added in v0.2.0
func (*DeleteJobResponse) ProtoMessage()
func (*DeleteJobResponse) ProtoReflect ¶ added in v0.2.0
func (x *DeleteJobResponse) ProtoReflect() protoreflect.Message
func (*DeleteJobResponse) Reset ¶ added in v0.2.0
func (x *DeleteJobResponse) Reset()
func (*DeleteJobResponse) String ¶ added in v0.2.0
func (x *DeleteJobResponse) String() string
type ExecuteRequest ¶
type ExecuteRequest struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
Shell string `protobuf:"bytes,2,opt,name=shell,proto3" json:"shell,omitempty"` // "powershell", "cmd", "bash" (auto-detect if empty)
WorkingDir string `protobuf:"bytes,3,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
Env map[string]string `` /* 133-byte string literal not displayed */
TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` // 0 = no timeout
Detach bool `protobuf:"varint,6,opt,name=detach,proto3" json:"detach,omitempty"` // Start detached (survives agent restart)
// contains filtered or unexported fields
}
func (*ExecuteRequest) Descriptor
deprecated
func (*ExecuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.
func (*ExecuteRequest) GetCommand ¶
func (x *ExecuteRequest) GetCommand() string
func (*ExecuteRequest) GetDetach ¶
func (x *ExecuteRequest) GetDetach() bool
func (*ExecuteRequest) GetEnv ¶
func (x *ExecuteRequest) GetEnv() map[string]string
func (*ExecuteRequest) GetShell ¶
func (x *ExecuteRequest) GetShell() string
func (*ExecuteRequest) GetTimeoutSeconds ¶
func (x *ExecuteRequest) GetTimeoutSeconds() int32
func (*ExecuteRequest) GetWorkingDir ¶
func (x *ExecuteRequest) GetWorkingDir() string
func (*ExecuteRequest) ProtoMessage ¶
func (*ExecuteRequest) ProtoMessage()
func (*ExecuteRequest) ProtoReflect ¶
func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
func (*ExecuteRequest) Reset ¶
func (x *ExecuteRequest) Reset()
func (*ExecuteRequest) String ¶
func (x *ExecuteRequest) String() string
type ExecuteResponse ¶
type ExecuteResponse struct {
Stream ExecuteResponse_Stream `protobuf:"varint,1,opt,name=stream,proto3,enum=agent.ExecuteResponse_Stream" json:"stream,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
ExitCode int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` // Valid when done=true
Pid int32 `protobuf:"varint,5,opt,name=pid,proto3" json:"pid,omitempty"` // PID of spawned process (sent in first message)
JobId string `protobuf:"bytes,6,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // Set when detach=true; empty for foreground executions
// contains filtered or unexported fields
}
func (*ExecuteResponse) Descriptor
deprecated
func (*ExecuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.
func (*ExecuteResponse) GetData ¶
func (x *ExecuteResponse) GetData() []byte
func (*ExecuteResponse) GetDone ¶
func (x *ExecuteResponse) GetDone() bool
func (*ExecuteResponse) GetExitCode ¶
func (x *ExecuteResponse) GetExitCode() int32
func (*ExecuteResponse) GetJobId ¶ added in v0.2.0
func (x *ExecuteResponse) GetJobId() string
func (*ExecuteResponse) GetPid ¶
func (x *ExecuteResponse) GetPid() int32
func (*ExecuteResponse) GetStream ¶
func (x *ExecuteResponse) GetStream() ExecuteResponse_Stream
func (*ExecuteResponse) ProtoMessage ¶
func (*ExecuteResponse) ProtoMessage()
func (*ExecuteResponse) ProtoReflect ¶
func (x *ExecuteResponse) ProtoReflect() protoreflect.Message
func (*ExecuteResponse) Reset ¶
func (x *ExecuteResponse) Reset()
func (*ExecuteResponse) String ¶
func (x *ExecuteResponse) String() string
type ExecuteResponse_Stream ¶
type ExecuteResponse_Stream int32
const ( ExecuteResponse_STDOUT ExecuteResponse_Stream = 0 ExecuteResponse_STDERR ExecuteResponse_Stream = 1 )
func (ExecuteResponse_Stream) Descriptor ¶
func (ExecuteResponse_Stream) Descriptor() protoreflect.EnumDescriptor
func (ExecuteResponse_Stream) Enum ¶
func (x ExecuteResponse_Stream) Enum() *ExecuteResponse_Stream
func (ExecuteResponse_Stream) EnumDescriptor
deprecated
func (ExecuteResponse_Stream) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse_Stream.Descriptor instead.
func (ExecuteResponse_Stream) Number ¶
func (x ExecuteResponse_Stream) Number() protoreflect.EnumNumber
func (ExecuteResponse_Stream) String ¶
func (x ExecuteResponse_Stream) String() string
func (ExecuteResponse_Stream) Type ¶
func (ExecuteResponse_Stream) Type() protoreflect.EnumType
type ExecuteScriptRequest ¶
type ExecuteScriptRequest struct {
ScriptBody string `protobuf:"bytes,1,opt,name=script_body,json=scriptBody,proto3" json:"script_body,omitempty"` // Inline script content
Shell string `protobuf:"bytes,2,opt,name=shell,proto3" json:"shell,omitempty"` // "powershell", "bash" (auto-detect if empty)
WorkingDir string `protobuf:"bytes,3,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
Env map[string]string `` /* 133-byte string literal not displayed */
TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"` // Script arguments
// contains filtered or unexported fields
}
func (*ExecuteScriptRequest) Descriptor
deprecated
func (*ExecuteScriptRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteScriptRequest.ProtoReflect.Descriptor instead.
func (*ExecuteScriptRequest) GetArgs ¶
func (x *ExecuteScriptRequest) GetArgs() []string
func (*ExecuteScriptRequest) GetEnv ¶
func (x *ExecuteScriptRequest) GetEnv() map[string]string
func (*ExecuteScriptRequest) GetScriptBody ¶
func (x *ExecuteScriptRequest) GetScriptBody() string
func (*ExecuteScriptRequest) GetShell ¶
func (x *ExecuteScriptRequest) GetShell() string
func (*ExecuteScriptRequest) GetTimeoutSeconds ¶
func (x *ExecuteScriptRequest) GetTimeoutSeconds() int32
func (*ExecuteScriptRequest) GetWorkingDir ¶
func (x *ExecuteScriptRequest) GetWorkingDir() string
func (*ExecuteScriptRequest) ProtoMessage ¶
func (*ExecuteScriptRequest) ProtoMessage()
func (*ExecuteScriptRequest) ProtoReflect ¶
func (x *ExecuteScriptRequest) ProtoReflect() protoreflect.Message
func (*ExecuteScriptRequest) Reset ¶
func (x *ExecuteScriptRequest) Reset()
func (*ExecuteScriptRequest) String ¶
func (x *ExecuteScriptRequest) String() string
type ForwardChunk ¶ added in v0.2.0
type ForwardChunk struct {
TargetAddr string `protobuf:"bytes,1,opt,name=target_addr,json=targetAddr,proto3" json:"target_addr,omitempty"` // First client message only
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Close bool `protobuf:"varint,3,opt,name=close,proto3" json:"close,omitempty"`
// contains filtered or unexported fields
}
ForwardChunk carries a TCP tunnel control message or a slab of data.
First-message convention: the first client→server ForwardChunk MUST set target_addr (e.g. "127.0.0.1:8765"). The agent dials that TCP address with a short timeout, then enters a byte-shuttling loop. Subsequent messages on either direction carry application bytes in `data`. Setting `close=true` indicates the sender is done writing (half-close); the agent forwards EOF to the target socket. When the target socket closes its read side, the agent sends {close: true} back and ends the stream.
func (*ForwardChunk) Descriptor
deprecated
added in
v0.2.0
func (*ForwardChunk) Descriptor() ([]byte, []int)
Deprecated: Use ForwardChunk.ProtoReflect.Descriptor instead.
func (*ForwardChunk) GetClose ¶ added in v0.2.0
func (x *ForwardChunk) GetClose() bool
func (*ForwardChunk) GetData ¶ added in v0.2.0
func (x *ForwardChunk) GetData() []byte
func (*ForwardChunk) GetTargetAddr ¶ added in v0.2.0
func (x *ForwardChunk) GetTargetAddr() string
func (*ForwardChunk) ProtoMessage ¶ added in v0.2.0
func (*ForwardChunk) ProtoMessage()
func (*ForwardChunk) ProtoReflect ¶ added in v0.2.0
func (x *ForwardChunk) ProtoReflect() protoreflect.Message
func (*ForwardChunk) Reset ¶ added in v0.2.0
func (x *ForwardChunk) Reset()
func (*ForwardChunk) String ¶ added in v0.2.0
func (x *ForwardChunk) String() string
type GetInfoRequest ¶
type GetInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetInfoRequest) Descriptor
deprecated
func (*GetInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.
func (*GetInfoRequest) ProtoMessage ¶
func (*GetInfoRequest) ProtoMessage()
func (*GetInfoRequest) ProtoReflect ¶
func (x *GetInfoRequest) ProtoReflect() protoreflect.Message
func (*GetInfoRequest) Reset ¶
func (x *GetInfoRequest) Reset()
func (*GetInfoRequest) String ¶
func (x *GetInfoRequest) String() string
type GetInfoResponse ¶
type GetInfoResponse struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
Os string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"` // "windows" or "linux"
Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"` // "amd64", "arm64"
CpuCount int32 `protobuf:"varint,4,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
MemoryBytes int64 `protobuf:"varint,5,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`
AgentVersion string `protobuf:"bytes,6,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
// contains filtered or unexported fields
}
func (*GetInfoResponse) Descriptor
deprecated
func (*GetInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
func (*GetInfoResponse) GetAgentVersion ¶
func (x *GetInfoResponse) GetAgentVersion() string
func (*GetInfoResponse) GetArch ¶
func (x *GetInfoResponse) GetArch() string
func (*GetInfoResponse) GetCpuCount ¶
func (x *GetInfoResponse) GetCpuCount() int32
func (*GetInfoResponse) GetHostname ¶
func (x *GetInfoResponse) GetHostname() string
func (*GetInfoResponse) GetMemoryBytes ¶
func (x *GetInfoResponse) GetMemoryBytes() int64
func (*GetInfoResponse) GetOs ¶
func (x *GetInfoResponse) GetOs() string
func (*GetInfoResponse) ProtoMessage ¶
func (*GetInfoResponse) ProtoMessage()
func (*GetInfoResponse) ProtoReflect ¶
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
func (*GetInfoResponse) Reset ¶
func (x *GetInfoResponse) Reset()
func (*GetInfoResponse) String ¶
func (x *GetInfoResponse) String() string
type GetJobOutputRequest ¶ added in v0.2.0
type GetJobOutputRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Stream GetJobOutputRequest_Stream `protobuf:"varint,2,opt,name=stream,proto3,enum=agent.GetJobOutputRequest_Stream" json:"stream,omitempty"`
TailLines int32 `protobuf:"varint,3,opt,name=tail_lines,json=tailLines,proto3" json:"tail_lines,omitempty"` // 0 = whole file (subject to max_bytes)
MaxBytes int64 `protobuf:"varint,4,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` // 0 = default (1 MiB), clamped to 8 MiB
// contains filtered or unexported fields
}
func (*GetJobOutputRequest) Descriptor
deprecated
added in
v0.2.0
func (*GetJobOutputRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJobOutputRequest.ProtoReflect.Descriptor instead.
func (*GetJobOutputRequest) GetJobId ¶ added in v0.2.0
func (x *GetJobOutputRequest) GetJobId() string
func (*GetJobOutputRequest) GetMaxBytes ¶ added in v0.2.0
func (x *GetJobOutputRequest) GetMaxBytes() int64
func (*GetJobOutputRequest) GetStream ¶ added in v0.2.0
func (x *GetJobOutputRequest) GetStream() GetJobOutputRequest_Stream
func (*GetJobOutputRequest) GetTailLines ¶ added in v0.2.0
func (x *GetJobOutputRequest) GetTailLines() int32
func (*GetJobOutputRequest) ProtoMessage ¶ added in v0.2.0
func (*GetJobOutputRequest) ProtoMessage()
func (*GetJobOutputRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetJobOutputRequest) ProtoReflect() protoreflect.Message
func (*GetJobOutputRequest) Reset ¶ added in v0.2.0
func (x *GetJobOutputRequest) Reset()
func (*GetJobOutputRequest) String ¶ added in v0.2.0
func (x *GetJobOutputRequest) String() string
type GetJobOutputRequest_Stream ¶ added in v0.2.0
type GetJobOutputRequest_Stream int32
const ( GetJobOutputRequest_BOTH GetJobOutputRequest_Stream = 0 // Interleaved by merge of stdout then stderr GetJobOutputRequest_STDOUT GetJobOutputRequest_Stream = 1 GetJobOutputRequest_STDERR GetJobOutputRequest_Stream = 2 )
func (GetJobOutputRequest_Stream) Descriptor ¶ added in v0.2.0
func (GetJobOutputRequest_Stream) Descriptor() protoreflect.EnumDescriptor
func (GetJobOutputRequest_Stream) Enum ¶ added in v0.2.0
func (x GetJobOutputRequest_Stream) Enum() *GetJobOutputRequest_Stream
func (GetJobOutputRequest_Stream) EnumDescriptor
deprecated
added in
v0.2.0
func (GetJobOutputRequest_Stream) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetJobOutputRequest_Stream.Descriptor instead.
func (GetJobOutputRequest_Stream) Number ¶ added in v0.2.0
func (x GetJobOutputRequest_Stream) Number() protoreflect.EnumNumber
func (GetJobOutputRequest_Stream) String ¶ added in v0.2.0
func (x GetJobOutputRequest_Stream) String() string
func (GetJobOutputRequest_Stream) Type ¶ added in v0.2.0
func (GetJobOutputRequest_Stream) Type() protoreflect.EnumType
type GetJobOutputResponse ¶ added in v0.2.0
type GetJobOutputResponse struct {
Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"` // True if the cap was hit
StdoutTotalBytes int64 `protobuf:"varint,4,opt,name=stdout_total_bytes,json=stdoutTotalBytes,proto3" json:"stdout_total_bytes,omitempty"`
StderrTotalBytes int64 `protobuf:"varint,5,opt,name=stderr_total_bytes,json=stderrTotalBytes,proto3" json:"stderr_total_bytes,omitempty"`
// contains filtered or unexported fields
}
func (*GetJobOutputResponse) Descriptor
deprecated
added in
v0.2.0
func (*GetJobOutputResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJobOutputResponse.ProtoReflect.Descriptor instead.
func (*GetJobOutputResponse) GetStderr ¶ added in v0.2.0
func (x *GetJobOutputResponse) GetStderr() []byte
func (*GetJobOutputResponse) GetStderrTotalBytes ¶ added in v0.2.0
func (x *GetJobOutputResponse) GetStderrTotalBytes() int64
func (*GetJobOutputResponse) GetStdout ¶ added in v0.2.0
func (x *GetJobOutputResponse) GetStdout() []byte
func (*GetJobOutputResponse) GetStdoutTotalBytes ¶ added in v0.2.0
func (x *GetJobOutputResponse) GetStdoutTotalBytes() int64
func (*GetJobOutputResponse) GetTruncated ¶ added in v0.2.0
func (x *GetJobOutputResponse) GetTruncated() bool
func (*GetJobOutputResponse) ProtoMessage ¶ added in v0.2.0
func (*GetJobOutputResponse) ProtoMessage()
func (*GetJobOutputResponse) ProtoReflect ¶ added in v0.2.0
func (x *GetJobOutputResponse) ProtoReflect() protoreflect.Message
func (*GetJobOutputResponse) Reset ¶ added in v0.2.0
func (x *GetJobOutputResponse) Reset()
func (*GetJobOutputResponse) String ¶ added in v0.2.0
func (x *GetJobOutputResponse) String() string
type GetJobRequest ¶ added in v0.2.0
type GetJobRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetJobRequest) Descriptor
deprecated
added in
v0.2.0
func (*GetJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.
func (*GetJobRequest) GetJobId ¶ added in v0.2.0
func (x *GetJobRequest) GetJobId() string
func (*GetJobRequest) ProtoMessage ¶ added in v0.2.0
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetJobRequest) ProtoReflect() protoreflect.Message
func (*GetJobRequest) Reset ¶ added in v0.2.0
func (x *GetJobRequest) Reset()
func (*GetJobRequest) String ¶ added in v0.2.0
func (x *GetJobRequest) String() string
type GetJobResponse ¶ added in v0.2.0
type GetJobResponse struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
// contains filtered or unexported fields
}
func (*GetJobResponse) Descriptor
deprecated
added in
v0.2.0
func (*GetJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead.
func (*GetJobResponse) GetJob ¶ added in v0.2.0
func (x *GetJobResponse) GetJob() *Job
func (*GetJobResponse) ProtoMessage ¶ added in v0.2.0
func (*GetJobResponse) ProtoMessage()
func (*GetJobResponse) ProtoReflect ¶ added in v0.2.0
func (x *GetJobResponse) ProtoReflect() protoreflect.Message
func (*GetJobResponse) Reset ¶ added in v0.2.0
func (x *GetJobResponse) Reset()
func (*GetJobResponse) String ¶ added in v0.2.0
func (x *GetJobResponse) String() string
type Job ¶ added in v0.2.0
type Job struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
Shell string `protobuf:"bytes,3,opt,name=shell,proto3" json:"shell,omitempty"`
WorkingDir string `protobuf:"bytes,4,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
Env map[string]string `` /* 133-byte string literal not displayed */
Pid int32 `protobuf:"varint,6,opt,name=pid,proto3" json:"pid,omitempty"`
Status JobStatus `protobuf:"varint,7,opt,name=status,proto3,enum=agent.JobStatus" json:"status,omitempty"`
ExitCode int32 `protobuf:"varint,8,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` // Valid when status=EXITED
StartedAt string `protobuf:"bytes,9,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` // RFC3339
EndedAt string `protobuf:"bytes,10,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` // RFC3339; empty while running
StdoutBytes int64 `protobuf:"varint,11,opt,name=stdout_bytes,json=stdoutBytes,proto3" json:"stdout_bytes,omitempty"`
StderrBytes int64 `protobuf:"varint,12,opt,name=stderr_bytes,json=stderrBytes,proto3" json:"stderr_bytes,omitempty"`
Error string `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"` // Last recorded error (e.g. start failure)
// contains filtered or unexported fields
}
func (*Job) Descriptor
deprecated
added in
v0.2.0
func (*Job) GetCommand ¶ added in v0.2.0
func (*Job) GetEndedAt ¶ added in v0.2.0
func (*Job) GetExitCode ¶ added in v0.2.0
func (*Job) GetStartedAt ¶ added in v0.2.0
func (*Job) GetStderrBytes ¶ added in v0.2.0
func (*Job) GetStdoutBytes ¶ added in v0.2.0
func (*Job) GetWorkingDir ¶ added in v0.2.0
func (*Job) ProtoMessage ¶ added in v0.2.0
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶ added in v0.2.0
func (x *Job) ProtoReflect() protoreflect.Message
type JobEvent ¶ added in v0.2.0
type JobEvent struct {
Kind JobEvent_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=agent.JobEvent_Kind" json:"kind,omitempty"`
Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // For DELETED events
// contains filtered or unexported fields
}
func (*JobEvent) Descriptor
deprecated
added in
v0.2.0
func (*JobEvent) GetKind ¶ added in v0.2.0
func (x *JobEvent) GetKind() JobEvent_Kind
func (*JobEvent) ProtoMessage ¶ added in v0.2.0
func (*JobEvent) ProtoMessage()
func (*JobEvent) ProtoReflect ¶ added in v0.2.0
func (x *JobEvent) ProtoReflect() protoreflect.Message
type JobEvent_Kind ¶ added in v0.2.0
type JobEvent_Kind int32
const ( JobEvent_KIND_UNSPECIFIED JobEvent_Kind = 0 JobEvent_SNAPSHOT JobEvent_Kind = 1 // Replay on connect JobEvent_STARTED JobEvent_Kind = 2 JobEvent_UPDATED JobEvent_Kind = 3 JobEvent_COMPLETED JobEvent_Kind = 4 // Terminal (exited / canceled / orphaned) JobEvent_DELETED JobEvent_Kind = 5 // Job removed; only job_id is set )
func (JobEvent_Kind) Descriptor ¶ added in v0.2.0
func (JobEvent_Kind) Descriptor() protoreflect.EnumDescriptor
func (JobEvent_Kind) Enum ¶ added in v0.2.0
func (x JobEvent_Kind) Enum() *JobEvent_Kind
func (JobEvent_Kind) EnumDescriptor
deprecated
added in
v0.2.0
func (JobEvent_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use JobEvent_Kind.Descriptor instead.
func (JobEvent_Kind) Number ¶ added in v0.2.0
func (x JobEvent_Kind) Number() protoreflect.EnumNumber
func (JobEvent_Kind) String ¶ added in v0.2.0
func (x JobEvent_Kind) String() string
func (JobEvent_Kind) Type ¶ added in v0.2.0
func (JobEvent_Kind) Type() protoreflect.EnumType
type JobStatus ¶ added in v0.2.0
type JobStatus int32
const ( JobStatus_JOB_STATUS_UNSPECIFIED JobStatus = 0 JobStatus_JOB_STATUS_RUNNING JobStatus = 1 // Tracker goroutine alive, process alive JobStatus_JOB_STATUS_EXITED JobStatus = 2 // Process exited; exit_code valid JobStatus_JOB_STATUS_CANCELED JobStatus = 3 // Operator canceled; process killed JobStatus_JOB_STATUS_ORPHANED JobStatus = 4 // Tracker died (agent restart) and pid is gone )
func (JobStatus) Descriptor ¶ added in v0.2.0
func (JobStatus) Descriptor() protoreflect.EnumDescriptor
func (JobStatus) EnumDescriptor
deprecated
added in
v0.2.0
func (JobStatus) Number ¶ added in v0.2.0
func (x JobStatus) Number() protoreflect.EnumNumber
func (JobStatus) Type ¶ added in v0.2.0
func (JobStatus) Type() protoreflect.EnumType
type KillProcessRequest ¶
type KillProcessRequest struct {
Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // SIGKILL / TerminateProcess
// contains filtered or unexported fields
}
func (*KillProcessRequest) Descriptor
deprecated
func (*KillProcessRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillProcessRequest.ProtoReflect.Descriptor instead.
func (*KillProcessRequest) GetForce ¶
func (x *KillProcessRequest) GetForce() bool
func (*KillProcessRequest) GetPid ¶
func (x *KillProcessRequest) GetPid() int32
func (*KillProcessRequest) ProtoMessage ¶
func (*KillProcessRequest) ProtoMessage()
func (*KillProcessRequest) ProtoReflect ¶
func (x *KillProcessRequest) ProtoReflect() protoreflect.Message
func (*KillProcessRequest) Reset ¶
func (x *KillProcessRequest) Reset()
func (*KillProcessRequest) String ¶
func (x *KillProcessRequest) String() string
type KillProcessResponse ¶
type KillProcessResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*KillProcessResponse) Descriptor
deprecated
func (*KillProcessResponse) Descriptor() ([]byte, []int)
Deprecated: Use KillProcessResponse.ProtoReflect.Descriptor instead.
func (*KillProcessResponse) GetMessage ¶
func (x *KillProcessResponse) GetMessage() string
func (*KillProcessResponse) GetSuccess ¶
func (x *KillProcessResponse) GetSuccess() bool
func (*KillProcessResponse) ProtoMessage ¶
func (*KillProcessResponse) ProtoMessage()
func (*KillProcessResponse) ProtoReflect ¶
func (x *KillProcessResponse) ProtoReflect() protoreflect.Message
func (*KillProcessResponse) Reset ¶
func (x *KillProcessResponse) Reset()
func (*KillProcessResponse) String ¶
func (x *KillProcessResponse) String() string
type ListJobsRequest ¶ added in v0.2.0
type ListJobsRequest struct {
StatusFilter JobStatus `protobuf:"varint,1,opt,name=status_filter,json=statusFilter,proto3,enum=agent.JobStatus" json:"status_filter,omitempty"` // UNSPECIFIED = no filter
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // 0 = default (50)
// contains filtered or unexported fields
}
func (*ListJobsRequest) Descriptor
deprecated
added in
v0.2.0
func (*ListJobsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.
func (*ListJobsRequest) GetLimit ¶ added in v0.2.0
func (x *ListJobsRequest) GetLimit() int32
func (*ListJobsRequest) GetStatusFilter ¶ added in v0.2.0
func (x *ListJobsRequest) GetStatusFilter() JobStatus
func (*ListJobsRequest) ProtoMessage ¶ added in v0.2.0
func (*ListJobsRequest) ProtoMessage()
func (*ListJobsRequest) ProtoReflect ¶ added in v0.2.0
func (x *ListJobsRequest) ProtoReflect() protoreflect.Message
func (*ListJobsRequest) Reset ¶ added in v0.2.0
func (x *ListJobsRequest) Reset()
func (*ListJobsRequest) String ¶ added in v0.2.0
func (x *ListJobsRequest) String() string
type ListJobsResponse ¶ added in v0.2.0
type ListJobsResponse struct {
Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // Newest-first
// contains filtered or unexported fields
}
func (*ListJobsResponse) Descriptor
deprecated
added in
v0.2.0
func (*ListJobsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.
func (*ListJobsResponse) GetJobs ¶ added in v0.2.0
func (x *ListJobsResponse) GetJobs() []*Job
func (*ListJobsResponse) ProtoMessage ¶ added in v0.2.0
func (*ListJobsResponse) ProtoMessage()
func (*ListJobsResponse) ProtoReflect ¶ added in v0.2.0
func (x *ListJobsResponse) ProtoReflect() protoreflect.Message
func (*ListJobsResponse) Reset ¶ added in v0.2.0
func (x *ListJobsResponse) Reset()
func (*ListJobsResponse) String ¶ added in v0.2.0
func (x *ListJobsResponse) String() string
type ListProcessesRequest ¶
type ListProcessesRequest struct {
NameFilter string `protobuf:"bytes,1,opt,name=name_filter,json=nameFilter,proto3" json:"name_filter,omitempty"` // Optional substring filter on process name
// contains filtered or unexported fields
}
func (*ListProcessesRequest) Descriptor
deprecated
func (*ListProcessesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProcessesRequest.ProtoReflect.Descriptor instead.
func (*ListProcessesRequest) GetNameFilter ¶
func (x *ListProcessesRequest) GetNameFilter() string
func (*ListProcessesRequest) ProtoMessage ¶
func (*ListProcessesRequest) ProtoMessage()
func (*ListProcessesRequest) ProtoReflect ¶
func (x *ListProcessesRequest) ProtoReflect() protoreflect.Message
func (*ListProcessesRequest) Reset ¶
func (x *ListProcessesRequest) Reset()
func (*ListProcessesRequest) String ¶
func (x *ListProcessesRequest) String() string
type ListProcessesResponse ¶
type ListProcessesResponse struct {
Processes []*ProcessInfo `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
// contains filtered or unexported fields
}
func (*ListProcessesResponse) Descriptor
deprecated
func (*ListProcessesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProcessesResponse.ProtoReflect.Descriptor instead.
func (*ListProcessesResponse) GetProcesses ¶
func (x *ListProcessesResponse) GetProcesses() []*ProcessInfo
func (*ListProcessesResponse) ProtoMessage ¶
func (*ListProcessesResponse) ProtoMessage()
func (*ListProcessesResponse) ProtoReflect ¶
func (x *ListProcessesResponse) ProtoReflect() protoreflect.Message
func (*ListProcessesResponse) Reset ¶
func (x *ListProcessesResponse) Reset()
func (*ListProcessesResponse) String ¶
func (x *ListProcessesResponse) String() string
type NodeAgentClient ¶
type NodeAgentClient interface {
// Execute a command and stream stdout/stderr back in real-time.
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecuteResponse], error)
// Execute an inline script (pushed as temp file, executed, cleaned up).
ExecuteScript(ctx context.Context, in *ExecuteScriptRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecuteResponse], error)
// Push a file from MCP server to the agent node.
PushFile(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[PushFileRequest, PushFileResponse], error)
// Pull a file from the agent node to the MCP server.
PullFile(ctx context.Context, in *PullFileRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[PullFileResponse], error)
// List running processes.
ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error)
// Kill a process by PID.
KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error)
// Health check and node metadata.
GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
// List tracked background jobs (detached executions).
ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error)
// Get a single job's metadata.
GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error)
// Get captured output for a job (stdout and/or stderr).
GetJobOutput(ctx context.Context, in *GetJobOutputRequest, opts ...grpc.CallOption) (*GetJobOutputResponse, error)
// Cancel a running job (terminates the process tree).
CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*CancelJobResponse, error)
// Delete a terminal job (removes the job directory).
DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobResponse, error)
// Watch job lifecycle events. On connect, the agent replays a snapshot of
// current jobs as Started events, then streams live updates.
WatchJobs(ctx context.Context, in *WatchJobsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[JobEvent], error)
// Forward TCP bytes bidirectionally between the operator and a target on
// the agent node. The first client message MUST set target_addr; the agent
// dials it (TCP) and then byte-shuttles in both directions. Either side
// sends {close: true} to signal half-close. Used to tunnel application
// protocols (e.g. an MCP server bound to localhost on the node) through the
// node agent's existing mTLS channel.
Forward(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ForwardChunk, ForwardChunk], error)
}
NodeAgentClient is the client API for NodeAgent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNodeAgentClient ¶
func NewNodeAgentClient(cc grpc.ClientConnInterface) NodeAgentClient
type NodeAgentServer ¶
type NodeAgentServer interface {
// Execute a command and stream stdout/stderr back in real-time.
Execute(*ExecuteRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
// Execute an inline script (pushed as temp file, executed, cleaned up).
ExecuteScript(*ExecuteScriptRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
// Push a file from MCP server to the agent node.
PushFile(grpc.ClientStreamingServer[PushFileRequest, PushFileResponse]) error
// Pull a file from the agent node to the MCP server.
PullFile(*PullFileRequest, grpc.ServerStreamingServer[PullFileResponse]) error
// List running processes.
ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
// Kill a process by PID.
KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error)
// Health check and node metadata.
GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
// List tracked background jobs (detached executions).
ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
// Get a single job's metadata.
GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
// Get captured output for a job (stdout and/or stderr).
GetJobOutput(context.Context, *GetJobOutputRequest) (*GetJobOutputResponse, error)
// Cancel a running job (terminates the process tree).
CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
// Delete a terminal job (removes the job directory).
DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error)
// Watch job lifecycle events. On connect, the agent replays a snapshot of
// current jobs as Started events, then streams live updates.
WatchJobs(*WatchJobsRequest, grpc.ServerStreamingServer[JobEvent]) error
// Forward TCP bytes bidirectionally between the operator and a target on
// the agent node. The first client message MUST set target_addr; the agent
// dials it (TCP) and then byte-shuttles in both directions. Either side
// sends {close: true} to signal half-close. Used to tunnel application
// protocols (e.g. an MCP server bound to localhost on the node) through the
// node agent's existing mTLS channel.
Forward(grpc.BidiStreamingServer[ForwardChunk, ForwardChunk]) error
// contains filtered or unexported methods
}
NodeAgentServer is the server API for NodeAgent service. All implementations must embed UnimplementedNodeAgentServer for forward compatibility.
type NodeAgent_ExecuteClient ¶
type NodeAgent_ExecuteClient = grpc.ServerStreamingClient[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_ExecuteScriptClient ¶
type NodeAgent_ExecuteScriptClient = grpc.ServerStreamingClient[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_ExecuteScriptServer ¶
type NodeAgent_ExecuteScriptServer = grpc.ServerStreamingServer[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_ExecuteServer ¶
type NodeAgent_ExecuteServer = grpc.ServerStreamingServer[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_ForwardClient ¶ added in v0.2.0
type NodeAgent_ForwardClient = grpc.BidiStreamingClient[ForwardChunk, ForwardChunk]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_ForwardServer ¶ added in v0.2.0
type NodeAgent_ForwardServer = grpc.BidiStreamingServer[ForwardChunk, ForwardChunk]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_PullFileClient ¶
type NodeAgent_PullFileClient = grpc.ServerStreamingClient[PullFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_PullFileServer ¶
type NodeAgent_PullFileServer = grpc.ServerStreamingServer[PullFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_PushFileClient ¶
type NodeAgent_PushFileClient = grpc.ClientStreamingClient[PushFileRequest, PushFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_PushFileServer ¶
type NodeAgent_PushFileServer = grpc.ClientStreamingServer[PushFileRequest, PushFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_WatchJobsClient ¶ added in v0.2.0
type NodeAgent_WatchJobsClient = grpc.ServerStreamingClient[JobEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type NodeAgent_WatchJobsServer ¶ added in v0.2.0
type NodeAgent_WatchJobsServer = grpc.ServerStreamingServer[JobEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ProcessInfo ¶
type ProcessInfo struct {
Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
CommandLine string `protobuf:"bytes,3,opt,name=command_line,json=commandLine,proto3" json:"command_line,omitempty"`
MemoryBytes int64 `protobuf:"varint,4,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`
CpuPercent float64 `protobuf:"fixed64,5,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessInfo) Descriptor
deprecated
func (*ProcessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.
func (*ProcessInfo) GetCommandLine ¶
func (x *ProcessInfo) GetCommandLine() string
func (*ProcessInfo) GetCpuPercent ¶
func (x *ProcessInfo) GetCpuPercent() float64
func (*ProcessInfo) GetMemoryBytes ¶
func (x *ProcessInfo) GetMemoryBytes() int64
func (*ProcessInfo) GetName ¶
func (x *ProcessInfo) GetName() string
func (*ProcessInfo) GetPid ¶
func (x *ProcessInfo) GetPid() int32
func (*ProcessInfo) ProtoMessage ¶
func (*ProcessInfo) ProtoMessage()
func (*ProcessInfo) ProtoReflect ¶
func (x *ProcessInfo) ProtoReflect() protoreflect.Message
func (*ProcessInfo) Reset ¶
func (x *ProcessInfo) Reset()
func (*ProcessInfo) String ¶
func (x *ProcessInfo) String() string
type PullFileRequest ¶
type PullFileRequest struct {
RemotePath string `protobuf:"bytes,1,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"` // File path on the agent node
// contains filtered or unexported fields
}
func (*PullFileRequest) Descriptor
deprecated
func (*PullFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PullFileRequest.ProtoReflect.Descriptor instead.
func (*PullFileRequest) GetRemotePath ¶
func (x *PullFileRequest) GetRemotePath() string
func (*PullFileRequest) ProtoMessage ¶
func (*PullFileRequest) ProtoMessage()
func (*PullFileRequest) ProtoReflect ¶
func (x *PullFileRequest) ProtoReflect() protoreflect.Message
func (*PullFileRequest) Reset ¶
func (x *PullFileRequest) Reset()
func (*PullFileRequest) String ¶
func (x *PullFileRequest) String() string
type PullFileResponse ¶
type PullFileResponse struct {
Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` // File data chunk
TotalSize int64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` // Total file size (sent in first message)
// contains filtered or unexported fields
}
func (*PullFileResponse) Descriptor
deprecated
func (*PullFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use PullFileResponse.ProtoReflect.Descriptor instead.
func (*PullFileResponse) GetChunk ¶
func (x *PullFileResponse) GetChunk() []byte
func (*PullFileResponse) GetTotalSize ¶
func (x *PullFileResponse) GetTotalSize() int64
func (*PullFileResponse) ProtoMessage ¶
func (*PullFileResponse) ProtoMessage()
func (*PullFileResponse) ProtoReflect ¶
func (x *PullFileResponse) ProtoReflect() protoreflect.Message
func (*PullFileResponse) Reset ¶
func (x *PullFileResponse) Reset()
func (*PullFileResponse) String ¶
func (x *PullFileResponse) String() string
type PushFileRequest ¶
type PushFileRequest struct {
RemotePath string `protobuf:"bytes,1,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"` // Destination path on the agent node
Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` // File data chunk (64KB)
IsLast bool `protobuf:"varint,3,opt,name=is_last,json=isLast,proto3" json:"is_last,omitempty"` // True for the final chunk
FileSize int64 `protobuf:"varint,4,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // Total size (sent in first message, 0 if unknown)
// contains filtered or unexported fields
}
func (*PushFileRequest) Descriptor
deprecated
func (*PushFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushFileRequest.ProtoReflect.Descriptor instead.
func (*PushFileRequest) GetChunk ¶
func (x *PushFileRequest) GetChunk() []byte
func (*PushFileRequest) GetFileSize ¶
func (x *PushFileRequest) GetFileSize() int64
func (*PushFileRequest) GetIsLast ¶
func (x *PushFileRequest) GetIsLast() bool
func (*PushFileRequest) GetRemotePath ¶
func (x *PushFileRequest) GetRemotePath() string
func (*PushFileRequest) ProtoMessage ¶
func (*PushFileRequest) ProtoMessage()
func (*PushFileRequest) ProtoReflect ¶
func (x *PushFileRequest) ProtoReflect() protoreflect.Message
func (*PushFileRequest) Reset ¶
func (x *PushFileRequest) Reset()
func (*PushFileRequest) String ¶
func (x *PushFileRequest) String() string
type PushFileResponse ¶
type PushFileResponse struct {
BytesWritten int64 `protobuf:"varint,1,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"`
RemotePath string `protobuf:"bytes,2,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"`
// contains filtered or unexported fields
}
func (*PushFileResponse) Descriptor
deprecated
func (*PushFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use PushFileResponse.ProtoReflect.Descriptor instead.
func (*PushFileResponse) GetBytesWritten ¶
func (x *PushFileResponse) GetBytesWritten() int64
func (*PushFileResponse) GetRemotePath ¶
func (x *PushFileResponse) GetRemotePath() string
func (*PushFileResponse) ProtoMessage ¶
func (*PushFileResponse) ProtoMessage()
func (*PushFileResponse) ProtoReflect ¶
func (x *PushFileResponse) ProtoReflect() protoreflect.Message
func (*PushFileResponse) Reset ¶
func (x *PushFileResponse) Reset()
func (*PushFileResponse) String ¶
func (x *PushFileResponse) String() string
type UnimplementedNodeAgentServer ¶
type UnimplementedNodeAgentServer struct{}
UnimplementedNodeAgentServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNodeAgentServer) CancelJob ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
func (UnimplementedNodeAgentServer) DeleteJob ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error)
func (UnimplementedNodeAgentServer) Execute ¶
func (UnimplementedNodeAgentServer) Execute(*ExecuteRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
func (UnimplementedNodeAgentServer) ExecuteScript ¶
func (UnimplementedNodeAgentServer) ExecuteScript(*ExecuteScriptRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
func (UnimplementedNodeAgentServer) Forward ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) Forward(grpc.BidiStreamingServer[ForwardChunk, ForwardChunk]) error
func (UnimplementedNodeAgentServer) GetInfo ¶
func (UnimplementedNodeAgentServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
func (UnimplementedNodeAgentServer) GetJob ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
func (UnimplementedNodeAgentServer) GetJobOutput ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) GetJobOutput(context.Context, *GetJobOutputRequest) (*GetJobOutputResponse, error)
func (UnimplementedNodeAgentServer) KillProcess ¶
func (UnimplementedNodeAgentServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error)
func (UnimplementedNodeAgentServer) ListJobs ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
func (UnimplementedNodeAgentServer) ListProcesses ¶
func (UnimplementedNodeAgentServer) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
func (UnimplementedNodeAgentServer) PullFile ¶
func (UnimplementedNodeAgentServer) PullFile(*PullFileRequest, grpc.ServerStreamingServer[PullFileResponse]) error
func (UnimplementedNodeAgentServer) PushFile ¶
func (UnimplementedNodeAgentServer) PushFile(grpc.ClientStreamingServer[PushFileRequest, PushFileResponse]) error
func (UnimplementedNodeAgentServer) WatchJobs ¶ added in v0.2.0
func (UnimplementedNodeAgentServer) WatchJobs(*WatchJobsRequest, grpc.ServerStreamingServer[JobEvent]) error
type UnsafeNodeAgentServer ¶
type UnsafeNodeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeNodeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeAgentServer will result in compilation errors.
type WatchJobsRequest ¶ added in v0.2.0
type WatchJobsRequest struct {
// contains filtered or unexported fields
}
func (*WatchJobsRequest) Descriptor
deprecated
added in
v0.2.0
func (*WatchJobsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchJobsRequest.ProtoReflect.Descriptor instead.
func (*WatchJobsRequest) ProtoMessage ¶ added in v0.2.0
func (*WatchJobsRequest) ProtoMessage()
func (*WatchJobsRequest) ProtoReflect ¶ added in v0.2.0
func (x *WatchJobsRequest) ProtoReflect() protoreflect.Message
func (*WatchJobsRequest) Reset ¶ added in v0.2.0
func (x *WatchJobsRequest) Reset()
func (*WatchJobsRequest) String ¶ added in v0.2.0
func (x *WatchJobsRequest) String() string