Documentation
¶
Index ¶
- Variables
- func RegisterControlServer(s grpc.ServiceRegistrar, srv ControlServer)
- type ArgSpec
- func (*ArgSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ArgSpec) GetDescription() string
- func (x *ArgSpec) GetName() string
- func (x *ArgSpec) GetRequired() bool
- func (*ArgSpec) ProtoMessage()
- func (x *ArgSpec) ProtoReflect() protoreflect.Message
- func (x *ArgSpec) Reset()
- func (x *ArgSpec) String() string
- type ControlClient
- type ControlServer
- type Control_InvokeStreamClient
- type Control_InvokeStreamServer
- type InvocationSpec
- func (*InvocationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *InvocationSpec) GetArgs() []*ArgSpec
- func (x *InvocationSpec) GetDescription() string
- func (x *InvocationSpec) GetKind() string
- func (x *InvocationSpec) GetName() string
- func (x *InvocationSpec) GetStreaming() bool
- func (*InvocationSpec) ProtoMessage()
- func (x *InvocationSpec) ProtoReflect() protoreflect.Message
- func (x *InvocationSpec) Reset()
- func (x *InvocationSpec) String() string
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetArgs() map[string]string
- func (x *InvokeRequest) GetInvocation() string
- func (x *InvokeRequest) GetTarget() string
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeResponse
- func (*InvokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeResponse) GetError() string
- func (x *InvokeResponse) GetResultJson() string
- func (*InvokeResponse) ProtoMessage()
- func (x *InvokeResponse) ProtoReflect() protoreflect.Message
- func (x *InvokeResponse) Reset()
- func (x *InvokeResponse) String() string
- type ListInvocationsRequest
- func (*ListInvocationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvocationsRequest) GetTarget() string
- func (*ListInvocationsRequest) ProtoMessage()
- func (x *ListInvocationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListInvocationsRequest) Reset()
- func (x *ListInvocationsRequest) String() string
- type ListInvocationsResponse
- func (*ListInvocationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvocationsResponse) GetInvocations() []*InvocationSpec
- func (*ListInvocationsResponse) ProtoMessage()
- func (x *ListInvocationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListInvocationsResponse) Reset()
- func (x *ListInvocationsResponse) String() string
- type UnimplementedControlServer
- func (UnimplementedControlServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
- func (UnimplementedControlServer) InvokeStream(*InvokeRequest, Control_InvokeStreamServer) error
- func (UnimplementedControlServer) ListInvocations(context.Context, *ListInvocationsRequest) (*ListInvocationsResponse, error)
- type UnsafeControlServer
Constants ¶
This section is empty.
Variables ¶
var Control_ServiceDesc = grpc.ServiceDesc{ ServiceName: "reva.control.v1beta1.Control", HandlerType: (*ControlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListInvocations", Handler: _Control_ListInvocations_Handler, }, { MethodName: "Invoke", Handler: _Control_Invoke_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "InvokeStream", Handler: _Control_InvokeStream_Handler, ServerStreams: true, }, }, Metadata: "control.proto", }
Control_ServiceDesc is the grpc.ServiceDesc for Control service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_control_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControlServer ¶
func RegisterControlServer(s grpc.ServiceRegistrar, srv ControlServer)
Types ¶
type ArgSpec ¶
type ArgSpec struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}
func (*ArgSpec) Descriptor
deprecated
func (*ArgSpec) GetDescription ¶
func (*ArgSpec) GetRequired ¶
func (*ArgSpec) ProtoMessage ¶
func (*ArgSpec) ProtoMessage()
func (*ArgSpec) ProtoReflect ¶
func (x *ArgSpec) ProtoReflect() protoreflect.Message
type ControlClient ¶
type ControlClient interface {
ListInvocations(ctx context.Context, in *ListInvocationsRequest, opts ...grpc.CallOption) (*ListInvocationsResponse, error)
Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
// InvokeStream is the streaming twin of Invoke, for invocations that emit a
// stream of results.
InvokeStream(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (Control_InvokeStreamClient, error)
}
ControlClient is the client API for Control 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 NewControlClient ¶
func NewControlClient(cc grpc.ClientConnInterface) ControlClient
type ControlServer ¶
type ControlServer interface {
ListInvocations(context.Context, *ListInvocationsRequest) (*ListInvocationsResponse, error)
Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
// InvokeStream is the streaming twin of Invoke, for invocations that emit a
// stream of results.
InvokeStream(*InvokeRequest, Control_InvokeStreamServer) error
// contains filtered or unexported methods
}
ControlServer is the server API for Control service. All implementations must embed UnimplementedControlServer for forward compatibility
type Control_InvokeStreamClient ¶
type Control_InvokeStreamClient interface {
Recv() (*InvokeResponse, error)
grpc.ClientStream
}
type Control_InvokeStreamServer ¶
type Control_InvokeStreamServer interface {
Send(*InvokeResponse) error
grpc.ServerStream
}
type InvocationSpec ¶
type InvocationSpec struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Args []*ArgSpec `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// kind is readonly|mutating|dangerous, used for audit and gating.
Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
// streaming reports the invocation emits a stream of results (via
// InvokeStream) rather than a single one (Invoke).
Streaming bool `protobuf:"varint,5,opt,name=streaming,proto3" json:"streaming,omitempty"`
// contains filtered or unexported fields
}
func (*InvocationSpec) Descriptor
deprecated
func (*InvocationSpec) Descriptor() ([]byte, []int)
Deprecated: Use InvocationSpec.ProtoReflect.Descriptor instead.
func (*InvocationSpec) GetArgs ¶
func (x *InvocationSpec) GetArgs() []*ArgSpec
func (*InvocationSpec) GetDescription ¶
func (x *InvocationSpec) GetDescription() string
func (*InvocationSpec) GetKind ¶
func (x *InvocationSpec) GetKind() string
func (*InvocationSpec) GetName ¶
func (x *InvocationSpec) GetName() string
func (*InvocationSpec) GetStreaming ¶
func (x *InvocationSpec) GetStreaming() bool
func (*InvocationSpec) ProtoMessage ¶
func (*InvocationSpec) ProtoMessage()
func (*InvocationSpec) ProtoReflect ¶
func (x *InvocationSpec) ProtoReflect() protoreflect.Message
func (*InvocationSpec) Reset ¶
func (x *InvocationSpec) Reset()
func (*InvocationSpec) String ¶
func (x *InvocationSpec) String() string
type InvokeRequest ¶
type InvokeRequest struct {
// target is the node id "host:port/service" of a service instance.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
Invocation string `protobuf:"bytes,2,opt,name=invocation,proto3" json:"invocation,omitempty"`
Args map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetArgs ¶
func (x *InvokeRequest) GetArgs() map[string]string
func (*InvokeRequest) GetInvocation ¶
func (x *InvokeRequest) GetInvocation() string
func (*InvokeRequest) GetTarget ¶
func (x *InvokeRequest) GetTarget() string
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
type InvokeResponse ¶
type InvokeResponse struct {
ResultJson string `protobuf:"bytes,1,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetError ¶
func (x *InvokeResponse) GetError() string
func (*InvokeResponse) GetResultJson ¶
func (x *InvokeResponse) GetResultJson() string
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
type ListInvocationsRequest ¶
type ListInvocationsRequest struct {
// target is the node id "host:port/service" of a service instance.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// contains filtered or unexported fields
}
func (*ListInvocationsRequest) Descriptor
deprecated
func (*ListInvocationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInvocationsRequest.ProtoReflect.Descriptor instead.
func (*ListInvocationsRequest) GetTarget ¶
func (x *ListInvocationsRequest) GetTarget() string
func (*ListInvocationsRequest) ProtoMessage ¶
func (*ListInvocationsRequest) ProtoMessage()
func (*ListInvocationsRequest) ProtoReflect ¶
func (x *ListInvocationsRequest) ProtoReflect() protoreflect.Message
func (*ListInvocationsRequest) Reset ¶
func (x *ListInvocationsRequest) Reset()
func (*ListInvocationsRequest) String ¶
func (x *ListInvocationsRequest) String() string
type ListInvocationsResponse ¶
type ListInvocationsResponse struct {
Invocations []*InvocationSpec `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
// contains filtered or unexported fields
}
func (*ListInvocationsResponse) Descriptor
deprecated
func (*ListInvocationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListInvocationsResponse.ProtoReflect.Descriptor instead.
func (*ListInvocationsResponse) GetInvocations ¶
func (x *ListInvocationsResponse) GetInvocations() []*InvocationSpec
func (*ListInvocationsResponse) ProtoMessage ¶
func (*ListInvocationsResponse) ProtoMessage()
func (*ListInvocationsResponse) ProtoReflect ¶
func (x *ListInvocationsResponse) ProtoReflect() protoreflect.Message
func (*ListInvocationsResponse) Reset ¶
func (x *ListInvocationsResponse) Reset()
func (*ListInvocationsResponse) String ¶
func (x *ListInvocationsResponse) String() string
type UnimplementedControlServer ¶
type UnimplementedControlServer struct {
}
UnimplementedControlServer must be embedded to have forward compatible implementations.
func (UnimplementedControlServer) Invoke ¶
func (UnimplementedControlServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
func (UnimplementedControlServer) InvokeStream ¶
func (UnimplementedControlServer) InvokeStream(*InvokeRequest, Control_InvokeStreamServer) error
func (UnimplementedControlServer) ListInvocations ¶
func (UnimplementedControlServer) ListInvocations(context.Context, *ListInvocationsRequest) (*ListInvocationsResponse, error)
type UnsafeControlServer ¶
type UnsafeControlServer interface {
// contains filtered or unexported methods
}
UnsafeControlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControlServer will result in compilation errors.