Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPluginLifecycleServer(s grpc.ServiceRegistrar, srv PluginLifecycleServer)
- type GetCapabilitiesResponse
- func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCapabilitiesResponse) GetCapabilities() []string
- func (*GetCapabilitiesResponse) ProtoMessage()
- func (x *GetCapabilitiesResponse) ProtoReflect() protoreflect.Message
- func (x *GetCapabilitiesResponse) Reset()
- func (x *GetCapabilitiesResponse) String() string
- type GetInfoResponse
- func (*GetInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInfoResponse) GetPluginId() string
- func (x *GetInfoResponse) GetSdkProtocolVersion() int32
- func (x *GetInfoResponse) GetVersion() string
- func (*GetInfoResponse) ProtoMessage()
- func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetInfoResponse) Reset()
- func (x *GetInfoResponse) String() string
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetStatus() ServingStatus
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type PluginLifecycleClient
- type PluginLifecycleServer
- type ServingStatus
- func (ServingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ServingStatus) Enum() *ServingStatus
- func (ServingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServingStatus) Number() protoreflect.EnumNumber
- func (x ServingStatus) String() string
- func (ServingStatus) Type() protoreflect.EnumType
- type UnimplementedPluginLifecycleServer
- func (UnimplementedPluginLifecycleServer) GetCapabilities(context.Context, *emptypb.Empty) (*GetCapabilitiesResponse, error)
- func (UnimplementedPluginLifecycleServer) GetInfo(context.Context, *emptypb.Empty) (*GetInfoResponse, error)
- func (UnimplementedPluginLifecycleServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
- type UnsafePluginLifecycleServer
Constants ¶
const ( PluginLifecycle_GetInfo_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetInfo" PluginLifecycle_GetCapabilities_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetCapabilities" PluginLifecycle_HealthCheck_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/HealthCheck" )
Variables ¶
var ( ServingStatus_name = map[int32]string{ 0: "SERVING_STATUS_UNKNOWN", 1: "SERVING_STATUS_SERVING", 2: "SERVING_STATUS_NOT_SERVING", } ServingStatus_value = map[string]int32{ "SERVING_STATUS_UNKNOWN": 0, "SERVING_STATUS_SERVING": 1, "SERVING_STATUS_NOT_SERVING": 2, } )
Enum value maps for ServingStatus.
var File_proto_v1_lifecycle_lifecycle_proto protoreflect.FileDescriptor
var PluginLifecycle_ServiceDesc = grpc.ServiceDesc{ ServiceName: "omniview.sdk.lifecycle.v1.PluginLifecycle", HandlerType: (*PluginLifecycleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInfo", Handler: _PluginLifecycle_GetInfo_Handler, }, { MethodName: "GetCapabilities", Handler: _PluginLifecycle_GetCapabilities_Handler, }, { MethodName: "HealthCheck", Handler: _PluginLifecycle_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1/lifecycle/lifecycle.proto", }
PluginLifecycle_ServiceDesc is the grpc.ServiceDesc for PluginLifecycle service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPluginLifecycleServer ¶
func RegisterPluginLifecycleServer(s grpc.ServiceRegistrar, srv PluginLifecycleServer)
Types ¶
type GetCapabilitiesResponse ¶
type GetCapabilitiesResponse struct {
Capabilities []string `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
func (*GetCapabilitiesResponse) Descriptor
deprecated
func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCapabilitiesResponse.ProtoReflect.Descriptor instead.
func (*GetCapabilitiesResponse) GetCapabilities ¶
func (x *GetCapabilitiesResponse) GetCapabilities() []string
func (*GetCapabilitiesResponse) ProtoMessage ¶
func (*GetCapabilitiesResponse) ProtoMessage()
func (*GetCapabilitiesResponse) ProtoReflect ¶
func (x *GetCapabilitiesResponse) ProtoReflect() protoreflect.Message
func (*GetCapabilitiesResponse) Reset ¶
func (x *GetCapabilitiesResponse) Reset()
func (*GetCapabilitiesResponse) String ¶
func (x *GetCapabilitiesResponse) String() string
type GetInfoResponse ¶
type GetInfoResponse struct {
PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
SdkProtocolVersion int32 `protobuf:"varint,3,opt,name=sdk_protocol_version,json=sdkProtocolVersion,proto3" json:"sdk_protocol_version,omitempty"`
// contains filtered or unexported fields
}
func (*GetInfoResponse) Descriptor
deprecated
func (*GetInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
func (*GetInfoResponse) GetPluginId ¶
func (x *GetInfoResponse) GetPluginId() string
func (*GetInfoResponse) GetSdkProtocolVersion ¶
func (x *GetInfoResponse) GetSdkProtocolVersion() int32
func (*GetInfoResponse) GetVersion ¶
func (x *GetInfoResponse) GetVersion() string
func (*GetInfoResponse) ProtoMessage ¶
func (*GetInfoResponse) ProtoMessage()
func (*GetInfoResponse) ProtoReflect ¶
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message
func (*GetInfoResponse) Reset ¶
func (x *GetInfoResponse) Reset()
func (*GetInfoResponse) String ¶
func (x *GetInfoResponse) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Status ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=omniview.sdk.lifecycle.v1.ServingStatus" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetStatus ¶
func (x *HealthCheckResponse) GetStatus() ServingStatus
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type PluginLifecycleClient ¶
type PluginLifecycleClient interface {
// GetInfo returns plugin identification and version information.
GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetInfoResponse, error)
// GetCapabilities returns the list of capabilities this plugin serves.
// Replaces exception-based gRPC probing on the host side.
GetCapabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error)
// HealthCheck returns the current health status of the plugin process.
HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}
PluginLifecycleClient is the client API for PluginLifecycle 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 NewPluginLifecycleClient ¶
func NewPluginLifecycleClient(cc grpc.ClientConnInterface) PluginLifecycleClient
type PluginLifecycleServer ¶
type PluginLifecycleServer interface {
// GetInfo returns plugin identification and version information.
GetInfo(context.Context, *emptypb.Empty) (*GetInfoResponse, error)
// GetCapabilities returns the list of capabilities this plugin serves.
// Replaces exception-based gRPC probing on the host side.
GetCapabilities(context.Context, *emptypb.Empty) (*GetCapabilitiesResponse, error)
// HealthCheck returns the current health status of the plugin process.
HealthCheck(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
}
PluginLifecycleServer is the server API for PluginLifecycle service. All implementations should embed UnimplementedPluginLifecycleServer for forward compatibility
type ServingStatus ¶
type ServingStatus int32
const ( ServingStatus_SERVING_STATUS_UNKNOWN ServingStatus = 0 ServingStatus_SERVING_STATUS_SERVING ServingStatus = 1 ServingStatus_SERVING_STATUS_NOT_SERVING ServingStatus = 2 )
func (ServingStatus) Descriptor ¶
func (ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (ServingStatus) Enum ¶
func (x ServingStatus) Enum() *ServingStatus
func (ServingStatus) EnumDescriptor
deprecated
func (ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServingStatus.Descriptor instead.
func (ServingStatus) Number ¶
func (x ServingStatus) Number() protoreflect.EnumNumber
func (ServingStatus) String ¶
func (x ServingStatus) String() string
func (ServingStatus) Type ¶
func (ServingStatus) Type() protoreflect.EnumType
type UnimplementedPluginLifecycleServer ¶
type UnimplementedPluginLifecycleServer struct {
}
UnimplementedPluginLifecycleServer should be embedded to have forward compatible implementations.
func (UnimplementedPluginLifecycleServer) GetCapabilities ¶
func (UnimplementedPluginLifecycleServer) GetCapabilities(context.Context, *emptypb.Empty) (*GetCapabilitiesResponse, error)
func (UnimplementedPluginLifecycleServer) GetInfo ¶
func (UnimplementedPluginLifecycleServer) GetInfo(context.Context, *emptypb.Empty) (*GetInfoResponse, error)
func (UnimplementedPluginLifecycleServer) HealthCheck ¶
func (UnimplementedPluginLifecycleServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
type UnsafePluginLifecycleServer ¶
type UnsafePluginLifecycleServer interface {
// contains filtered or unexported methods
}
UnsafePluginLifecycleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginLifecycleServer will result in compilation errors.