Documentation ¶
Index ¶
- Variables
- func NewProcessServiceEndpoints() []*api.Endpoint
- func RegisterProcessServiceHandler(s server.Server, hdlr ProcessServiceHandler, opts ...server.HandlerOption) error
- type KillAllRequest
- func (*KillAllRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KillAllRequest) GetPid() int32
- func (*KillAllRequest) ProtoMessage()
- func (x *KillAllRequest) ProtoReflect() protoreflect.Message
- func (x *KillAllRequest) Reset()
- func (x *KillAllRequest) String() string
- func (m *KillAllRequest) Validate() error
- type KillAllRequestValidationError
- func (e KillAllRequestValidationError) Cause() error
- func (e KillAllRequestValidationError) Error() string
- func (e KillAllRequestValidationError) ErrorName() string
- func (e KillAllRequestValidationError) Field() string
- func (e KillAllRequestValidationError) Key() bool
- func (e KillAllRequestValidationError) Reason() string
- type KillAllResponse
- func (*KillAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KillAllResponse) GetResults() []*Process
- func (*KillAllResponse) ProtoMessage()
- func (x *KillAllResponse) ProtoReflect() protoreflect.Message
- func (x *KillAllResponse) Reset()
- func (x *KillAllResponse) String() string
- func (m *KillAllResponse) Validate() error
- type KillAllResponseValidationError
- func (e KillAllResponseValidationError) Cause() error
- func (e KillAllResponseValidationError) Error() string
- func (e KillAllResponseValidationError) ErrorName() string
- func (e KillAllResponseValidationError) Field() string
- func (e KillAllResponseValidationError) Key() bool
- func (e KillAllResponseValidationError) Reason() string
- type KillRequest
- type KillRequestValidationError
- func (e KillRequestValidationError) Cause() error
- func (e KillRequestValidationError) Error() string
- func (e KillRequestValidationError) ErrorName() string
- func (e KillRequestValidationError) Field() string
- func (e KillRequestValidationError) Key() bool
- func (e KillRequestValidationError) Reason() string
- type KillResponse
- func (*KillResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KillResponse) GetResult() *Process
- func (*KillResponse) ProtoMessage()
- func (x *KillResponse) ProtoReflect() protoreflect.Message
- func (x *KillResponse) Reset()
- func (x *KillResponse) String() string
- func (m *KillResponse) Validate() error
- type KillResponseValidationError
- func (e KillResponseValidationError) Cause() error
- func (e KillResponseValidationError) Error() string
- func (e KillResponseValidationError) ErrorName() string
- func (e KillResponseValidationError) Field() string
- func (e KillResponseValidationError) Key() bool
- func (e KillResponseValidationError) Reason() string
- type ListRequest
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetResults() []*Process
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type Process
- func (*Process) Descriptor() ([]byte, []int)deprecated
- func (x *Process) GetCommand() string
- func (x *Process) GetPid() int32
- func (*Process) ProtoMessage()
- func (x *Process) ProtoReflect() protoreflect.Message
- func (x *Process) Reset()
- func (x *Process) String() string
- func (m *Process) Validate() error
- type ProcessService
- type ProcessServiceHandler
- type ProcessValidationError
- type SpawnRequest
- func (*SpawnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpawnRequest) GetArgs() []string
- func (*SpawnRequest) ProtoMessage()
- func (x *SpawnRequest) ProtoReflect() protoreflect.Message
- func (x *SpawnRequest) Reset()
- func (x *SpawnRequest) String() string
- func (m *SpawnRequest) Validate() error
- type SpawnRequestValidationError
- func (e SpawnRequestValidationError) Cause() error
- func (e SpawnRequestValidationError) Error() string
- func (e SpawnRequestValidationError) ErrorName() string
- func (e SpawnRequestValidationError) Field() string
- func (e SpawnRequestValidationError) Key() bool
- func (e SpawnRequestValidationError) Reason() string
- type SpawnResponse
- func (*SpawnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpawnResponse) GetResult() *Process
- func (*SpawnResponse) ProtoMessage()
- func (x *SpawnResponse) ProtoReflect() protoreflect.Message
- func (x *SpawnResponse) Reset()
- func (x *SpawnResponse) String() string
- func (m *SpawnResponse) Validate() error
- type SpawnResponseValidationError
- func (e SpawnResponseValidationError) Cause() error
- func (e SpawnResponseValidationError) Error() string
- func (e SpawnResponseValidationError) ErrorName() string
- func (e SpawnResponseValidationError) Field() string
- func (e SpawnResponseValidationError) Key() bool
- func (e SpawnResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_entity_proto protoreflect.FileDescriptor
var File_proto_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterProcessServiceHandler ¶
func RegisterProcessServiceHandler(s server.Server, hdlr ProcessServiceHandler, opts ...server.HandlerOption) error
Types ¶
type KillAllRequest ¶
type KillAllRequest struct { Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*KillAllRequest) Descriptor
deprecated
func (*KillAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillAllRequest.ProtoReflect.Descriptor instead.
func (*KillAllRequest) GetPid ¶
func (x *KillAllRequest) GetPid() int32
func (*KillAllRequest) ProtoMessage ¶
func (*KillAllRequest) ProtoMessage()
func (*KillAllRequest) ProtoReflect ¶
func (x *KillAllRequest) ProtoReflect() protoreflect.Message
func (*KillAllRequest) Reset ¶
func (x *KillAllRequest) Reset()
func (*KillAllRequest) String ¶
func (x *KillAllRequest) String() string
func (*KillAllRequest) Validate ¶
func (m *KillAllRequest) Validate() error
Validate checks the field values on KillAllRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type KillAllRequestValidationError ¶
type KillAllRequestValidationError struct {
// contains filtered or unexported fields
}
KillAllRequestValidationError is the validation error returned by KillAllRequest.Validate if the designated constraints aren't met.
func (KillAllRequestValidationError) Cause ¶
func (e KillAllRequestValidationError) Cause() error
Cause function returns cause value.
func (KillAllRequestValidationError) Error ¶
func (e KillAllRequestValidationError) Error() string
Error satisfies the builtin error interface
func (KillAllRequestValidationError) ErrorName ¶
func (e KillAllRequestValidationError) ErrorName() string
ErrorName returns error name.
func (KillAllRequestValidationError) Field ¶
func (e KillAllRequestValidationError) Field() string
Field function returns field value.
func (KillAllRequestValidationError) Key ¶
func (e KillAllRequestValidationError) Key() bool
Key function returns key value.
func (KillAllRequestValidationError) Reason ¶
func (e KillAllRequestValidationError) Reason() string
Reason function returns reason value.
type KillAllResponse ¶
type KillAllResponse struct { Results []*Process `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*KillAllResponse) Descriptor
deprecated
func (*KillAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use KillAllResponse.ProtoReflect.Descriptor instead.
func (*KillAllResponse) GetResults ¶
func (x *KillAllResponse) GetResults() []*Process
func (*KillAllResponse) ProtoMessage ¶
func (*KillAllResponse) ProtoMessage()
func (*KillAllResponse) ProtoReflect ¶
func (x *KillAllResponse) ProtoReflect() protoreflect.Message
func (*KillAllResponse) Reset ¶
func (x *KillAllResponse) Reset()
func (*KillAllResponse) String ¶
func (x *KillAllResponse) String() string
func (*KillAllResponse) Validate ¶
func (m *KillAllResponse) Validate() error
Validate checks the field values on KillAllResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type KillAllResponseValidationError ¶
type KillAllResponseValidationError struct {
// contains filtered or unexported fields
}
KillAllResponseValidationError is the validation error returned by KillAllResponse.Validate if the designated constraints aren't met.
func (KillAllResponseValidationError) Cause ¶
func (e KillAllResponseValidationError) Cause() error
Cause function returns cause value.
func (KillAllResponseValidationError) Error ¶
func (e KillAllResponseValidationError) Error() string
Error satisfies the builtin error interface
func (KillAllResponseValidationError) ErrorName ¶
func (e KillAllResponseValidationError) ErrorName() string
ErrorName returns error name.
func (KillAllResponseValidationError) Field ¶
func (e KillAllResponseValidationError) Field() string
Field function returns field value.
func (KillAllResponseValidationError) Key ¶
func (e KillAllResponseValidationError) Key() bool
Key function returns key value.
func (KillAllResponseValidationError) Reason ¶
func (e KillAllResponseValidationError) Reason() string
Reason function returns reason value.
type KillRequest ¶
type KillRequest struct { Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*KillRequest) Descriptor
deprecated
func (*KillRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillRequest.ProtoReflect.Descriptor instead.
func (*KillRequest) GetPid ¶
func (x *KillRequest) GetPid() int32
func (*KillRequest) ProtoMessage ¶
func (*KillRequest) ProtoMessage()
func (*KillRequest) ProtoReflect ¶
func (x *KillRequest) ProtoReflect() protoreflect.Message
func (*KillRequest) Reset ¶
func (x *KillRequest) Reset()
func (*KillRequest) String ¶
func (x *KillRequest) String() string
func (*KillRequest) Validate ¶
func (m *KillRequest) Validate() error
Validate checks the field values on KillRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type KillRequestValidationError ¶
type KillRequestValidationError struct {
// contains filtered or unexported fields
}
KillRequestValidationError is the validation error returned by KillRequest.Validate if the designated constraints aren't met.
func (KillRequestValidationError) Cause ¶
func (e KillRequestValidationError) Cause() error
Cause function returns cause value.
func (KillRequestValidationError) Error ¶
func (e KillRequestValidationError) Error() string
Error satisfies the builtin error interface
func (KillRequestValidationError) ErrorName ¶
func (e KillRequestValidationError) ErrorName() string
ErrorName returns error name.
func (KillRequestValidationError) Field ¶
func (e KillRequestValidationError) Field() string
Field function returns field value.
func (KillRequestValidationError) Key ¶
func (e KillRequestValidationError) Key() bool
Key function returns key value.
func (KillRequestValidationError) Reason ¶
func (e KillRequestValidationError) Reason() string
Reason function returns reason value.
type KillResponse ¶
type KillResponse struct { Result *Process `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*KillResponse) Descriptor
deprecated
func (*KillResponse) Descriptor() ([]byte, []int)
Deprecated: Use KillResponse.ProtoReflect.Descriptor instead.
func (*KillResponse) GetResult ¶
func (x *KillResponse) GetResult() *Process
func (*KillResponse) ProtoMessage ¶
func (*KillResponse) ProtoMessage()
func (*KillResponse) ProtoReflect ¶
func (x *KillResponse) ProtoReflect() protoreflect.Message
func (*KillResponse) Reset ¶
func (x *KillResponse) Reset()
func (*KillResponse) String ¶
func (x *KillResponse) String() string
func (*KillResponse) Validate ¶
func (m *KillResponse) Validate() error
Validate checks the field values on KillResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type KillResponseValidationError ¶
type KillResponseValidationError struct {
// contains filtered or unexported fields
}
KillResponseValidationError is the validation error returned by KillResponse.Validate if the designated constraints aren't met.
func (KillResponseValidationError) Cause ¶
func (e KillResponseValidationError) Cause() error
Cause function returns cause value.
func (KillResponseValidationError) Error ¶
func (e KillResponseValidationError) Error() string
Error satisfies the builtin error interface
func (KillResponseValidationError) ErrorName ¶
func (e KillResponseValidationError) ErrorName() string
ErrorName returns error name.
func (KillResponseValidationError) Field ¶
func (e KillResponseValidationError) Field() string
Field function returns field value.
func (KillResponseValidationError) Key ¶
func (e KillResponseValidationError) Key() bool
Key function returns key value.
func (KillResponseValidationError) Reason ¶
func (e KillResponseValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Results []*Process `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetResults ¶
func (x *ListResponse) GetResults() []*Process
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type Process ¶
type Process struct { Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*Process) Descriptor
deprecated
func (*Process) GetCommand ¶
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
func (*Process) ProtoReflect ¶
func (x *Process) ProtoReflect() protoreflect.Message
type ProcessService ¶
type ProcessService interface { Spawn(ctx context.Context, in *SpawnRequest, opts ...client.CallOption) (*SpawnResponse, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) Kill(ctx context.Context, in *KillRequest, opts ...client.CallOption) (*KillResponse, error) KillAll(ctx context.Context, in *KillAllRequest, opts ...client.CallOption) (*KillAllResponse, error) }
func NewProcessService ¶
func NewProcessService(name string, c client.Client) ProcessService
type ProcessServiceHandler ¶
type ProcessServiceHandler interface { Spawn(context.Context, *SpawnRequest, *SpawnResponse) error List(context.Context, *ListRequest, *ListResponse) error Kill(context.Context, *KillRequest, *KillResponse) error KillAll(context.Context, *KillAllRequest, *KillAllResponse) error }
type ProcessValidationError ¶
type ProcessValidationError struct {
// contains filtered or unexported fields
}
ProcessValidationError is the validation error returned by Process.Validate if the designated constraints aren't met.
func (ProcessValidationError) Cause ¶
func (e ProcessValidationError) Cause() error
Cause function returns cause value.
func (ProcessValidationError) Error ¶
func (e ProcessValidationError) Error() string
Error satisfies the builtin error interface
func (ProcessValidationError) ErrorName ¶
func (e ProcessValidationError) ErrorName() string
ErrorName returns error name.
func (ProcessValidationError) Field ¶
func (e ProcessValidationError) Field() string
Field function returns field value.
func (ProcessValidationError) Key ¶
func (e ProcessValidationError) Key() bool
Key function returns key value.
func (ProcessValidationError) Reason ¶
func (e ProcessValidationError) Reason() string
Reason function returns reason value.
type SpawnRequest ¶
type SpawnRequest struct { Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*SpawnRequest) Descriptor
deprecated
func (*SpawnRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpawnRequest.ProtoReflect.Descriptor instead.
func (*SpawnRequest) GetArgs ¶
func (x *SpawnRequest) GetArgs() []string
func (*SpawnRequest) ProtoMessage ¶
func (*SpawnRequest) ProtoMessage()
func (*SpawnRequest) ProtoReflect ¶
func (x *SpawnRequest) ProtoReflect() protoreflect.Message
func (*SpawnRequest) Reset ¶
func (x *SpawnRequest) Reset()
func (*SpawnRequest) String ¶
func (x *SpawnRequest) String() string
func (*SpawnRequest) Validate ¶
func (m *SpawnRequest) Validate() error
Validate checks the field values on SpawnRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SpawnRequestValidationError ¶
type SpawnRequestValidationError struct {
// contains filtered or unexported fields
}
SpawnRequestValidationError is the validation error returned by SpawnRequest.Validate if the designated constraints aren't met.
func (SpawnRequestValidationError) Cause ¶
func (e SpawnRequestValidationError) Cause() error
Cause function returns cause value.
func (SpawnRequestValidationError) Error ¶
func (e SpawnRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SpawnRequestValidationError) ErrorName ¶
func (e SpawnRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SpawnRequestValidationError) Field ¶
func (e SpawnRequestValidationError) Field() string
Field function returns field value.
func (SpawnRequestValidationError) Key ¶
func (e SpawnRequestValidationError) Key() bool
Key function returns key value.
func (SpawnRequestValidationError) Reason ¶
func (e SpawnRequestValidationError) Reason() string
Reason function returns reason value.
type SpawnResponse ¶
type SpawnResponse struct { Result *Process `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SpawnResponse) Descriptor
deprecated
func (*SpawnResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpawnResponse.ProtoReflect.Descriptor instead.
func (*SpawnResponse) GetResult ¶
func (x *SpawnResponse) GetResult() *Process
func (*SpawnResponse) ProtoMessage ¶
func (*SpawnResponse) ProtoMessage()
func (*SpawnResponse) ProtoReflect ¶
func (x *SpawnResponse) ProtoReflect() protoreflect.Message
func (*SpawnResponse) Reset ¶
func (x *SpawnResponse) Reset()
func (*SpawnResponse) String ¶
func (x *SpawnResponse) String() string
func (*SpawnResponse) Validate ¶
func (m *SpawnResponse) Validate() error
Validate checks the field values on SpawnResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SpawnResponseValidationError ¶
type SpawnResponseValidationError struct {
// contains filtered or unexported fields
}
SpawnResponseValidationError is the validation error returned by SpawnResponse.Validate if the designated constraints aren't met.
func (SpawnResponseValidationError) Cause ¶
func (e SpawnResponseValidationError) Cause() error
Cause function returns cause value.
func (SpawnResponseValidationError) Error ¶
func (e SpawnResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SpawnResponseValidationError) ErrorName ¶
func (e SpawnResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SpawnResponseValidationError) Field ¶
func (e SpawnResponseValidationError) Field() string
Field function returns field value.
func (SpawnResponseValidationError) Key ¶
func (e SpawnResponseValidationError) Key() bool
Key function returns key value.
func (SpawnResponseValidationError) Reason ¶
func (e SpawnResponseValidationError) Reason() string
Reason function returns reason value.