controlpb

package
v3.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

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

Deprecated: Use ArgSpec.ProtoReflect.Descriptor instead.

func (*ArgSpec) GetDescription

func (x *ArgSpec) GetDescription() string

func (*ArgSpec) GetName

func (x *ArgSpec) GetName() string

func (*ArgSpec) GetRequired

func (x *ArgSpec) GetRequired() bool

func (*ArgSpec) ProtoMessage

func (*ArgSpec) ProtoMessage()

func (*ArgSpec) ProtoReflect

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

func (*ArgSpec) Reset

func (x *ArgSpec) Reset()

func (*ArgSpec) String

func (x *ArgSpec) String() string

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

func (UnimplementedControlServer) ListInvocations

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.

Jump to

Keyboard shortcuts

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