rpcv1

package
v1.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Index

Constants

View Source
const (
	Coordinator_Connect_FullMethodName = "/aperture.rpc.v1.Coordinator/Connect"
)

Variables

View Source
var Coordinator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.rpc.v1.Coordinator",
	HandlerType: (*CoordinatorServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Connect",
			Handler:       _Coordinator_Connect_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "aperture/rpc/v1/rpc.proto",
}

Coordinator_ServiceDesc is the grpc.ServiceDesc for Coordinator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_aperture_rpc_v1_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterCoordinatorServer

func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)

Types

type ClientToServer

type ClientToServer struct {

	// Types that are assignable to Msg:
	//
	//	*ClientToServer_Hello_
	//	*ClientToServer_Response
	Msg isClientToServer_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ClientToServer) DeepCopy

func (in *ClientToServer) DeepCopy() *ClientToServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer. Required by controller-gen.

func (*ClientToServer) DeepCopyInterface

func (in *ClientToServer) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer. Required by controller-gen.

func (*ClientToServer) DeepCopyInto

func (in *ClientToServer) DeepCopyInto(out *ClientToServer)

DeepCopyInto supports using ClientToServer within kubernetes types, where deepcopy-gen is used.

func (*ClientToServer) Descriptor deprecated

func (*ClientToServer) Descriptor() ([]byte, []int)

Deprecated: Use ClientToServer.ProtoReflect.Descriptor instead.

func (*ClientToServer) GetHello

func (x *ClientToServer) GetHello() *ClientToServer_Hello

func (*ClientToServer) GetMsg

func (m *ClientToServer) GetMsg() isClientToServer_Msg

func (*ClientToServer) GetResponse

func (x *ClientToServer) GetResponse() *Response

func (*ClientToServer) MarshalJSON

func (msg *ClientToServer) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ClientToServer) ProtoMessage

func (*ClientToServer) ProtoMessage()

func (*ClientToServer) ProtoReflect

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

func (*ClientToServer) Reset

func (x *ClientToServer) Reset()

func (*ClientToServer) String

func (x *ClientToServer) String() string

func (*ClientToServer) UnmarshalJSON

func (msg *ClientToServer) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ClientToServer) Validate added in v1.2.0

func (m *ClientToServer) Validate() error

Validate checks the field values on ClientToServer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClientToServer) ValidateAll added in v1.2.0

func (m *ClientToServer) ValidateAll() error

ValidateAll checks the field values on ClientToServer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClientToServerMultiError, or nil if none found.

type ClientToServerMultiError added in v1.2.0

type ClientToServerMultiError []error

ClientToServerMultiError is an error wrapping multiple validation errors returned by ClientToServer.ValidateAll() if the designated constraints aren't met.

func (ClientToServerMultiError) AllErrors added in v1.2.0

func (m ClientToServerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientToServerMultiError) Error added in v1.2.0

func (m ClientToServerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClientToServerValidationError added in v1.2.0

type ClientToServerValidationError struct {
	// contains filtered or unexported fields
}

ClientToServerValidationError is the validation error returned by ClientToServer.Validate if the designated constraints aren't met.

func (ClientToServerValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (ClientToServerValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (ClientToServerValidationError) ErrorName added in v1.2.0

func (e ClientToServerValidationError) ErrorName() string

ErrorName returns error name.

func (ClientToServerValidationError) Field added in v1.2.0

Field function returns field value.

func (ClientToServerValidationError) Key added in v1.2.0

Key function returns key value.

func (ClientToServerValidationError) Reason added in v1.2.0

Reason function returns reason value.

type ClientToServer_Hello

type ClientToServer_Hello struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	NextId uint64 `protobuf:"varint,2,opt,name=next_id,json=nextId,proto3" json:"next_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientToServer_Hello) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer_Hello. Required by controller-gen.

func (*ClientToServer_Hello) DeepCopyInterface

func (in *ClientToServer_Hello) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer_Hello. Required by controller-gen.

func (*ClientToServer_Hello) DeepCopyInto

func (in *ClientToServer_Hello) DeepCopyInto(out *ClientToServer_Hello)

DeepCopyInto supports using ClientToServer_Hello within kubernetes types, where deepcopy-gen is used.

func (*ClientToServer_Hello) Descriptor deprecated

func (*ClientToServer_Hello) Descriptor() ([]byte, []int)

Deprecated: Use ClientToServer_Hello.ProtoReflect.Descriptor instead.

func (*ClientToServer_Hello) GetName

func (x *ClientToServer_Hello) GetName() string

func (*ClientToServer_Hello) GetNextId

func (x *ClientToServer_Hello) GetNextId() uint64

func (*ClientToServer_Hello) MarshalJSON

func (msg *ClientToServer_Hello) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ClientToServer_Hello) ProtoMessage

func (*ClientToServer_Hello) ProtoMessage()

func (*ClientToServer_Hello) ProtoReflect

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

func (*ClientToServer_Hello) Reset

func (x *ClientToServer_Hello) Reset()

func (*ClientToServer_Hello) String

func (x *ClientToServer_Hello) String() string

func (*ClientToServer_Hello) UnmarshalJSON

func (msg *ClientToServer_Hello) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ClientToServer_Hello) Validate added in v1.2.0

func (m *ClientToServer_Hello) Validate() error

Validate checks the field values on ClientToServer_Hello with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClientToServer_Hello) ValidateAll added in v1.2.0

func (m *ClientToServer_Hello) ValidateAll() error

ValidateAll checks the field values on ClientToServer_Hello with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClientToServer_HelloMultiError, or nil if none found.

type ClientToServer_HelloMultiError added in v1.2.0

type ClientToServer_HelloMultiError []error

ClientToServer_HelloMultiError is an error wrapping multiple validation errors returned by ClientToServer_Hello.ValidateAll() if the designated constraints aren't met.

func (ClientToServer_HelloMultiError) AllErrors added in v1.2.0

func (m ClientToServer_HelloMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientToServer_HelloMultiError) Error added in v1.2.0

Error returns a concatenation of all the error messages it wraps.

type ClientToServer_HelloValidationError added in v1.2.0

type ClientToServer_HelloValidationError struct {
	// contains filtered or unexported fields
}

ClientToServer_HelloValidationError is the validation error returned by ClientToServer_Hello.Validate if the designated constraints aren't met.

func (ClientToServer_HelloValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (ClientToServer_HelloValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (ClientToServer_HelloValidationError) ErrorName added in v1.2.0

ErrorName returns error name.

func (ClientToServer_HelloValidationError) Field added in v1.2.0

Field function returns field value.

func (ClientToServer_HelloValidationError) Key added in v1.2.0

Key function returns key value.

func (ClientToServer_HelloValidationError) Reason added in v1.2.0

Reason function returns reason value.

type ClientToServer_Hello_

type ClientToServer_Hello_ struct {
	Hello *ClientToServer_Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}

type ClientToServer_Response

type ClientToServer_Response struct {
	Response *Response `protobuf:"bytes,2,opt,name=response,proto3,oneof"`
}

type CoordinatorClient

type CoordinatorClient interface {
	Connect(ctx context.Context, opts ...grpc.CallOption) (Coordinator_ConnectClient, error)
}

CoordinatorClient is the client API for Coordinator 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.

type CoordinatorServer

type CoordinatorServer interface {
	Connect(Coordinator_ConnectServer) error
}

CoordinatorServer is the server API for Coordinator service. All implementations should embed UnimplementedCoordinatorServer for forward compatibility

type Coordinator_ConnectClient

type Coordinator_ConnectClient interface {
	Send(*ClientToServer) error
	Recv() (*ServerToClient, error)
	grpc.ClientStream
}

type Coordinator_ConnectServer

type Coordinator_ConnectServer interface {
	Send(*ServerToClient) error
	Recv() (*ClientToServer, error)
	grpc.ServerStream
}

type Request

type Request struct {

	// Id of the request, this should be unique per client connection. First
	// request id on the connection should be equal to nextID from the Hello
	// message.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Mandatory timeout for processing request. Timeout is handled on
	// caller-side. After it passes, caller is no longer interested in a response,
	// and callee can forget about the request.
	Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Request payload. The method on the callee will be dispatched by request's type.
	Payload *anypb.Any `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request. Required by controller-gen.

func (*Request) DeepCopyInterface

func (in *Request) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Request. Required by controller-gen.

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

DeepCopyInto supports using Request within kubernetes types, where deepcopy-gen is used.

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetId

func (x *Request) GetId() uint64

func (*Request) GetPayload

func (x *Request) GetPayload() *anypb.Any

func (*Request) GetTimeout

func (x *Request) GetTimeout() *durationpb.Duration

func (*Request) MarshalJSON

func (msg *Request) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) UnmarshalJSON

func (msg *Request) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Request) Validate added in v1.2.0

func (m *Request) Validate() error

Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Request) ValidateAll added in v1.2.0

func (m *Request) ValidateAll() error

ValidateAll checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestMultiError, or nil if none found.

type RequestMultiError added in v1.2.0

type RequestMultiError []error

RequestMultiError is an error wrapping multiple validation errors returned by Request.ValidateAll() if the designated constraints aren't met.

func (RequestMultiError) AllErrors added in v1.2.0

func (m RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMultiError) Error added in v1.2.0

func (m RequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RequestValidationError added in v1.2.0

type RequestValidationError struct {
	// contains filtered or unexported fields
}

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause added in v1.2.0

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error added in v1.2.0

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName added in v1.2.0

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field added in v1.2.0

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key added in v1.2.0

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason added in v1.2.0

func (e RequestValidationError) Reason() string

Reason function returns reason value.

type Response

type Response struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Result:
	//
	//	*Response_Payload
	//	*Response_Error
	Result isResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*Response) DeepCopy

func (in *Response) DeepCopy() *Response

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInterface

func (in *Response) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInto

func (in *Response) DeepCopyInto(out *Response)

DeepCopyInto supports using Response within kubernetes types, where deepcopy-gen is used.

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError

func (x *Response) GetError() *status.Status

func (*Response) GetId

func (x *Response) GetId() uint64

func (*Response) GetPayload

func (x *Response) GetPayload() []byte

func (*Response) GetResult

func (m *Response) GetResult() isResponse_Result

func (*Response) MarshalJSON

func (msg *Response) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) UnmarshalJSON

func (msg *Response) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Response) Validate added in v1.2.0

func (m *Response) Validate() error

Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Response) ValidateAll added in v1.2.0

func (m *Response) ValidateAll() error

ValidateAll checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResponseMultiError, or nil if none found.

type ResponseMultiError added in v1.2.0

type ResponseMultiError []error

ResponseMultiError is an error wrapping multiple validation errors returned by Response.ValidateAll() if the designated constraints aren't met.

func (ResponseMultiError) AllErrors added in v1.2.0

func (m ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResponseMultiError) Error added in v1.2.0

func (m ResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResponseValidationError added in v1.2.0

type ResponseValidationError struct {
	// contains filtered or unexported fields
}

ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.

func (ResponseValidationError) Cause added in v1.2.0

func (e ResponseValidationError) Cause() error

Cause function returns cause value.

func (ResponseValidationError) Error added in v1.2.0

func (e ResponseValidationError) Error() string

Error satisfies the builtin error interface

func (ResponseValidationError) ErrorName added in v1.2.0

func (e ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ResponseValidationError) Field added in v1.2.0

func (e ResponseValidationError) Field() string

Field function returns field value.

func (ResponseValidationError) Key added in v1.2.0

func (e ResponseValidationError) Key() bool

Key function returns key value.

func (ResponseValidationError) Reason added in v1.2.0

func (e ResponseValidationError) Reason() string

Reason function returns reason value.

type Response_Error

type Response_Error struct {
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type Response_Payload

type Response_Payload struct {
	// Payload is a message of a type implied by request kind.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3,oneof"`
}

type ServerToClient

type ServerToClient struct {

	// Types that are assignable to Command:
	//
	//	*ServerToClient_Request
	//	*ServerToClient_CancelId
	Command isServerToClient_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*ServerToClient) DeepCopy

func (in *ServerToClient) DeepCopy() *ServerToClient

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerToClient. Required by controller-gen.

func (*ServerToClient) DeepCopyInterface

func (in *ServerToClient) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServerToClient. Required by controller-gen.

func (*ServerToClient) DeepCopyInto

func (in *ServerToClient) DeepCopyInto(out *ServerToClient)

DeepCopyInto supports using ServerToClient within kubernetes types, where deepcopy-gen is used.

func (*ServerToClient) Descriptor deprecated

func (*ServerToClient) Descriptor() ([]byte, []int)

Deprecated: Use ServerToClient.ProtoReflect.Descriptor instead.

func (*ServerToClient) GetCancelId

func (x *ServerToClient) GetCancelId() uint64

func (*ServerToClient) GetCommand

func (m *ServerToClient) GetCommand() isServerToClient_Command

func (*ServerToClient) GetRequest

func (x *ServerToClient) GetRequest() *Request

func (*ServerToClient) MarshalJSON

func (msg *ServerToClient) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ServerToClient) ProtoMessage

func (*ServerToClient) ProtoMessage()

func (*ServerToClient) ProtoReflect

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

func (*ServerToClient) Reset

func (x *ServerToClient) Reset()

func (*ServerToClient) String

func (x *ServerToClient) String() string

func (*ServerToClient) UnmarshalJSON

func (msg *ServerToClient) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ServerToClient) Validate added in v1.2.0

func (m *ServerToClient) Validate() error

Validate checks the field values on ServerToClient with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerToClient) ValidateAll added in v1.2.0

func (m *ServerToClient) ValidateAll() error

ValidateAll checks the field values on ServerToClient with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerToClientMultiError, or nil if none found.

type ServerToClientMultiError added in v1.2.0

type ServerToClientMultiError []error

ServerToClientMultiError is an error wrapping multiple validation errors returned by ServerToClient.ValidateAll() if the designated constraints aren't met.

func (ServerToClientMultiError) AllErrors added in v1.2.0

func (m ServerToClientMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerToClientMultiError) Error added in v1.2.0

func (m ServerToClientMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServerToClientValidationError added in v1.2.0

type ServerToClientValidationError struct {
	// contains filtered or unexported fields
}

ServerToClientValidationError is the validation error returned by ServerToClient.Validate if the designated constraints aren't met.

func (ServerToClientValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (ServerToClientValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (ServerToClientValidationError) ErrorName added in v1.2.0

func (e ServerToClientValidationError) ErrorName() string

ErrorName returns error name.

func (ServerToClientValidationError) Field added in v1.2.0

Field function returns field value.

func (ServerToClientValidationError) Key added in v1.2.0

Key function returns key value.

func (ServerToClientValidationError) Reason added in v1.2.0

Reason function returns reason value.

type ServerToClient_CancelId

type ServerToClient_CancelId struct {
	// Cancels in-flight request.
	//
	// After cancellation, the response is not expected to be received, but
	// might happen that it will be received. If so, it should be ignored.
	CancelId uint64 `protobuf:"varint,2,opt,name=cancel_id,json=cancelId,proto3,oneof"`
}

type ServerToClient_Request

type ServerToClient_Request struct {
	// Make a request to client. Expect AgentToController message in the
	// future containing Response with the same id.
	Request *Request `protobuf:"bytes,1,opt,name=request,proto3,oneof"`
}

type UnimplementedCoordinatorServer

type UnimplementedCoordinatorServer struct {
}

UnimplementedCoordinatorServer should be embedded to have forward compatible implementations.

func (UnimplementedCoordinatorServer) Connect

type UnsafeCoordinatorServer

type UnsafeCoordinatorServer interface {
	// contains filtered or unexported methods
}

UnsafeCoordinatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoordinatorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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