Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPluginLifecycleServer(s grpc.ServiceRegistrar, srv PluginLifecycleServer)
- type BindHostServicesRequest
- func (*BindHostServicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BindHostServicesRequest) GetHostConnectionsBrokerId() uint32
- func (x *BindHostServicesRequest) GetVersion() uint32
- func (*BindHostServicesRequest) ProtoMessage()
- func (x *BindHostServicesRequest) ProtoReflect() protoreflect.Message
- func (x *BindHostServicesRequest) Reset()
- func (x *BindHostServicesRequest) String() string
- type BindHostServicesResponse
- func (*BindHostServicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BindHostServicesResponse) GetVersion() uint32
- func (*BindHostServicesResponse) ProtoMessage()
- func (x *BindHostServicesResponse) ProtoReflect() protoreflect.Message
- func (x *BindHostServicesResponse) Reset()
- func (x *BindHostServicesResponse) String() string
- 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) GetHostConnectionsVersion() uint32
- 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 ProfilingStatusResponse
- func (*ProfilingStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfilingStatusResponse) GetError() string
- func (x *ProfilingStatusResponse) GetPid() int64
- func (x *ProfilingStatusResponse) GetRunning() bool
- func (x *ProfilingStatusResponse) GetUrl() string
- func (*ProfilingStatusResponse) ProtoMessage()
- func (x *ProfilingStatusResponse) ProtoReflect() protoreflect.Message
- func (x *ProfilingStatusResponse) Reset()
- func (x *ProfilingStatusResponse) String() string
- 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) BindHostServices(context.Context, *BindHostServicesRequest) (*BindHostServicesResponse, error)
- func (UnimplementedPluginLifecycleServer) GetCapabilities(context.Context, *emptypb.Empty) (*GetCapabilitiesResponse, error)
- func (UnimplementedPluginLifecycleServer) GetInfo(context.Context, *emptypb.Empty) (*GetInfoResponse, error)
- func (UnimplementedPluginLifecycleServer) GetProfilingStatus(context.Context, *emptypb.Empty) (*ProfilingStatusResponse, 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" PluginLifecycle_GetProfilingStatus_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetProfilingStatus" PluginLifecycle_BindHostServices_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/BindHostServices" )
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, }, { MethodName: "GetProfilingStatus", Handler: _PluginLifecycle_GetProfilingStatus_Handler, }, { MethodName: "BindHostServices", Handler: _PluginLifecycle_BindHostServices_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 BindHostServicesRequest ¶ added in v0.13.0
type BindHostServicesRequest struct {
HostConnectionsBrokerId uint32 `` /* 135-byte string literal not displayed */
Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*BindHostServicesRequest) Descriptor
deprecated
added in
v0.13.0
func (*BindHostServicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BindHostServicesRequest.ProtoReflect.Descriptor instead.
func (*BindHostServicesRequest) GetHostConnectionsBrokerId ¶ added in v0.13.0
func (x *BindHostServicesRequest) GetHostConnectionsBrokerId() uint32
func (*BindHostServicesRequest) GetVersion ¶ added in v0.13.0
func (x *BindHostServicesRequest) GetVersion() uint32
func (*BindHostServicesRequest) ProtoMessage ¶ added in v0.13.0
func (*BindHostServicesRequest) ProtoMessage()
func (*BindHostServicesRequest) ProtoReflect ¶ added in v0.13.0
func (x *BindHostServicesRequest) ProtoReflect() protoreflect.Message
func (*BindHostServicesRequest) Reset ¶ added in v0.13.0
func (x *BindHostServicesRequest) Reset()
func (*BindHostServicesRequest) String ¶ added in v0.13.0
func (x *BindHostServicesRequest) String() string
type BindHostServicesResponse ¶ added in v0.13.0
type BindHostServicesResponse struct {
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*BindHostServicesResponse) Descriptor
deprecated
added in
v0.13.0
func (*BindHostServicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BindHostServicesResponse.ProtoReflect.Descriptor instead.
func (*BindHostServicesResponse) GetVersion ¶ added in v0.13.0
func (x *BindHostServicesResponse) GetVersion() uint32
func (*BindHostServicesResponse) ProtoMessage ¶ added in v0.13.0
func (*BindHostServicesResponse) ProtoMessage()
func (*BindHostServicesResponse) ProtoReflect ¶ added in v0.13.0
func (x *BindHostServicesResponse) ProtoReflect() protoreflect.Message
func (*BindHostServicesResponse) Reset ¶ added in v0.13.0
func (x *BindHostServicesResponse) Reset()
func (*BindHostServicesResponse) String ¶ added in v0.13.0
func (x *BindHostServicesResponse) String() string
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"`
HostConnectionsVersion uint32 `` /* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetInfoResponse) Descriptor
deprecated
func (*GetInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
func (*GetInfoResponse) GetHostConnectionsVersion ¶ added in v0.13.0
func (x *GetInfoResponse) GetHostConnectionsVersion() uint32
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)
// GetProfilingStatus reports the optional profiler owned by this process.
GetProfilingStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfilingStatusResponse, error)
BindHostServices(ctx context.Context, in *BindHostServicesRequest, opts ...grpc.CallOption) (*BindHostServicesResponse, 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)
// GetProfilingStatus reports the optional profiler owned by this process.
GetProfilingStatus(context.Context, *emptypb.Empty) (*ProfilingStatusResponse, error)
BindHostServices(context.Context, *BindHostServicesRequest) (*BindHostServicesResponse, error)
}
PluginLifecycleServer is the server API for PluginLifecycle service. All implementations should embed UnimplementedPluginLifecycleServer for forward compatibility
type ProfilingStatusResponse ¶ added in v0.11.0
type ProfilingStatusResponse struct {
Running bool `protobuf:"varint,1,opt,name=running,proto3" json:"running,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Pid int64 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
func (*ProfilingStatusResponse) Descriptor
deprecated
added in
v0.11.0
func (*ProfilingStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfilingStatusResponse.ProtoReflect.Descriptor instead.
func (*ProfilingStatusResponse) GetError ¶ added in v0.11.0
func (x *ProfilingStatusResponse) GetError() string
func (*ProfilingStatusResponse) GetPid ¶ added in v0.11.0
func (x *ProfilingStatusResponse) GetPid() int64
func (*ProfilingStatusResponse) GetRunning ¶ added in v0.11.0
func (x *ProfilingStatusResponse) GetRunning() bool
func (*ProfilingStatusResponse) GetUrl ¶ added in v0.11.0
func (x *ProfilingStatusResponse) GetUrl() string
func (*ProfilingStatusResponse) ProtoMessage ¶ added in v0.11.0
func (*ProfilingStatusResponse) ProtoMessage()
func (*ProfilingStatusResponse) ProtoReflect ¶ added in v0.11.0
func (x *ProfilingStatusResponse) ProtoReflect() protoreflect.Message
func (*ProfilingStatusResponse) Reset ¶ added in v0.11.0
func (x *ProfilingStatusResponse) Reset()
func (*ProfilingStatusResponse) String ¶ added in v0.11.0
func (x *ProfilingStatusResponse) String() string
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) BindHostServices ¶ added in v0.13.0
func (UnimplementedPluginLifecycleServer) BindHostServices(context.Context, *BindHostServicesRequest) (*BindHostServicesResponse, error)
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) GetProfilingStatus ¶ added in v0.11.0
func (UnimplementedPluginLifecycleServer) GetProfilingStatus(context.Context, *emptypb.Empty) (*ProfilingStatusResponse, 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.