proto

package
v0.0.0-...-ea90990 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_entity_proto protoreflect.FileDescriptor
View Source
var File_proto_service_proto protoreflect.FileDescriptor

Functions

func NewProcessServiceEndpoints

func NewProcessServiceEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (KillAllRequestValidationError) Error

Error satisfies the builtin error interface

func (KillAllRequestValidationError) ErrorName

func (e KillAllRequestValidationError) ErrorName() string

ErrorName returns error name.

func (KillAllRequestValidationError) Field

Field function returns field value.

func (KillAllRequestValidationError) Key

Key function returns key value.

func (KillAllRequestValidationError) Reason

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

Cause function returns cause value.

func (KillAllResponseValidationError) Error

Error satisfies the builtin error interface

func (KillAllResponseValidationError) ErrorName

func (e KillAllResponseValidationError) ErrorName() string

ErrorName returns error name.

func (KillAllResponseValidationError) Field

Field function returns field value.

func (KillAllResponseValidationError) Key

Key function returns key value.

func (KillAllResponseValidationError) Reason

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

Cause function returns cause value.

func (KillRequestValidationError) Error

Error satisfies the builtin error interface

func (KillRequestValidationError) ErrorName

func (e KillRequestValidationError) ErrorName() string

ErrorName returns error name.

func (KillRequestValidationError) Field

Field function returns field value.

func (KillRequestValidationError) Key

Key function returns key value.

func (KillRequestValidationError) Reason

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

Cause function returns cause value.

func (KillResponseValidationError) Error

Error satisfies the builtin error interface

func (KillResponseValidationError) ErrorName

func (e KillResponseValidationError) ErrorName() string

ErrorName returns error name.

func (KillResponseValidationError) Field

Field function returns field value.

func (KillResponseValidationError) Key

Key function returns key value.

func (KillResponseValidationError) Reason

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

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

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

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Process.ProtoReflect.Descriptor instead.

func (*Process) GetCommand

func (x *Process) GetCommand() string

func (*Process) GetPid

func (x *Process) GetPid() int32

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) ProtoReflect

func (x *Process) ProtoReflect() protoreflect.Message

func (*Process) Reset

func (x *Process) Reset()

func (*Process) String

func (x *Process) String() string

func (*Process) Validate

func (m *Process) Validate() error

Validate checks the field values on Process with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 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

Cause function returns cause value.

func (SpawnRequestValidationError) Error

Error satisfies the builtin error interface

func (SpawnRequestValidationError) ErrorName

func (e SpawnRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SpawnRequestValidationError) Field

Field function returns field value.

func (SpawnRequestValidationError) Key

Key function returns key value.

func (SpawnRequestValidationError) Reason

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

Cause function returns cause value.

func (SpawnResponseValidationError) Error

Error satisfies the builtin error interface

func (SpawnResponseValidationError) ErrorName

func (e SpawnResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SpawnResponseValidationError) Field

Field function returns field value.

func (SpawnResponseValidationError) Key

Key function returns key value.

func (SpawnResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL