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 DiagAttr
- type DiagKey
- type DiagKind
- type DiagMetric
- func (*DiagMetric) Descriptor() ([]byte, []int)deprecated
- func (x *DiagMetric) GetKind() DiagKind
- func (x *DiagMetric) GetName() string
- func (x *DiagMetric) GetPoints() []*DiagPoint
- func (x *DiagMetric) GetUnit() string
- func (*DiagMetric) ProtoMessage()
- func (x *DiagMetric) ProtoReflect() protoreflect.Message
- func (x *DiagMetric) Reset()
- func (x *DiagMetric) String() string
- type DiagPoint
- func (*DiagPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DiagPoint) GetAttrs() []*DiagAttr
- func (x *DiagPoint) GetBounds() []float64
- func (x *DiagPoint) GetBucketCounts() []uint64
- func (x *DiagPoint) GetCount() uint64
- func (x *DiagPoint) GetSum() float64
- func (x *DiagPoint) GetValue() float64
- func (*DiagPoint) ProtoMessage()
- func (x *DiagPoint) ProtoReflect() protoreflect.Message
- func (x *DiagPoint) Reset()
- func (x *DiagPoint) 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 GetDiagnosticsRequest
- func (*GetDiagnosticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiagnosticsRequest) GetMaxSchemaVersion() uint32
- func (*GetDiagnosticsRequest) ProtoMessage()
- func (x *GetDiagnosticsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDiagnosticsRequest) Reset()
- func (x *GetDiagnosticsRequest) String() string
- type GetDiagnosticsResponse
- func (*GetDiagnosticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiagnosticsResponse) GetMetrics() []*DiagMetric
- func (x *GetDiagnosticsResponse) GetPluginId() string
- func (x *GetDiagnosticsResponse) GetProcessStartUnixNs() int64
- func (x *GetDiagnosticsResponse) GetSchemaVersion() uint32
- func (x *GetDiagnosticsResponse) GetTruncated() bool
- func (*GetDiagnosticsResponse) ProtoMessage()
- func (x *GetDiagnosticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDiagnosticsResponse) Reset()
- func (x *GetDiagnosticsResponse) 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) GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, 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_GetDiagnostics_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetDiagnostics" 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 ( DiagKind_name = map[int32]string{ 0: "DIAG_KIND_UNSPECIFIED", 1: "DIAG_KIND_COUNTER", 2: "DIAG_KIND_GAUGE", 3: "DIAG_KIND_HISTOGRAM", } DiagKind_value = map[string]int32{ "DIAG_KIND_UNSPECIFIED": 0, "DIAG_KIND_COUNTER": 1, "DIAG_KIND_GAUGE": 2, "DIAG_KIND_HISTOGRAM": 3, } )
Enum value maps for DiagKind.
var ( DiagKey_name = map[int32]string{ 0: "DIAG_KEY_UNSPECIFIED", 1: "DIAG_KEY_OPERATION", 2: "DIAG_KEY_OUTCOME", 3: "DIAG_KEY_PHASE", 4: "DIAG_KEY_STATE", 5: "DIAG_KEY_REASON", 6: "DIAG_KEY_CACHE", 7: "DIAG_KEY_QUEUE", 8: "DIAG_KEY_DIRECTION", 9: "DIAG_KEY_EVENT", } DiagKey_value = map[string]int32{ "DIAG_KEY_UNSPECIFIED": 0, "DIAG_KEY_OPERATION": 1, "DIAG_KEY_OUTCOME": 2, "DIAG_KEY_PHASE": 3, "DIAG_KEY_STATE": 4, "DIAG_KEY_REASON": 5, "DIAG_KEY_CACHE": 6, "DIAG_KEY_QUEUE": 7, "DIAG_KEY_DIRECTION": 8, "DIAG_KEY_EVENT": 9, } )
Enum value maps for DiagKey.
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: "GetDiagnostics", Handler: _PluginLifecycle_GetDiagnostics_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 DiagAttr ¶ added in v0.17.0
type DiagAttr struct {
Key DiagKey `protobuf:"varint,1,opt,name=key,proto3,enum=omniview.sdk.lifecycle.v1.DiagKey" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*DiagAttr) Descriptor
deprecated
added in
v0.17.0
func (*DiagAttr) ProtoMessage ¶ added in v0.17.0
func (*DiagAttr) ProtoMessage()
func (*DiagAttr) ProtoReflect ¶ added in v0.17.0
func (x *DiagAttr) ProtoReflect() protoreflect.Message
type DiagKey ¶ added in v0.17.0
type DiagKey int32
DiagKey is a closed set: attributes can never carry resource names, queries or credentials as keys, and values are restricted to ^[a-z][a-z0-9_]{0,31}$.
const ( DiagKey_DIAG_KEY_UNSPECIFIED DiagKey = 0 DiagKey_DIAG_KEY_OPERATION DiagKey = 1 DiagKey_DIAG_KEY_OUTCOME DiagKey = 2 DiagKey_DIAG_KEY_PHASE DiagKey = 3 DiagKey_DIAG_KEY_STATE DiagKey = 4 DiagKey_DIAG_KEY_REASON DiagKey = 5 DiagKey_DIAG_KEY_CACHE DiagKey = 6 DiagKey_DIAG_KEY_QUEUE DiagKey = 7 DiagKey_DIAG_KEY_DIRECTION DiagKey = 8 DiagKey_DIAG_KEY_EVENT DiagKey = 9 )
func (DiagKey) Descriptor ¶ added in v0.17.0
func (DiagKey) Descriptor() protoreflect.EnumDescriptor
func (DiagKey) EnumDescriptor
deprecated
added in
v0.17.0
func (DiagKey) Number ¶ added in v0.17.0
func (x DiagKey) Number() protoreflect.EnumNumber
func (DiagKey) Type ¶ added in v0.17.0
func (DiagKey) Type() protoreflect.EnumType
type DiagKind ¶ added in v0.17.0
type DiagKind int32
func (DiagKind) Descriptor ¶ added in v0.17.0
func (DiagKind) Descriptor() protoreflect.EnumDescriptor
func (DiagKind) EnumDescriptor
deprecated
added in
v0.17.0
func (DiagKind) Number ¶ added in v0.17.0
func (x DiagKind) Number() protoreflect.EnumNumber
func (DiagKind) Type ¶ added in v0.17.0
func (DiagKind) Type() protoreflect.EnumType
type DiagMetric ¶ added in v0.17.0
type DiagMetric struct {
// Matches ^omniview\.plugin\.self\.[a-z0-9_.]{1,72}$ (host-owned names live elsewhere).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"`
Kind DiagKind `protobuf:"varint,3,opt,name=kind,proto3,enum=omniview.sdk.lifecycle.v1.DiagKind" json:"kind,omitempty"`
// At most 16 points.
Points []*DiagPoint `protobuf:"bytes,4,rep,name=points,proto3" json:"points,omitempty"`
// contains filtered or unexported fields
}
func (*DiagMetric) Descriptor
deprecated
added in
v0.17.0
func (*DiagMetric) Descriptor() ([]byte, []int)
Deprecated: Use DiagMetric.ProtoReflect.Descriptor instead.
func (*DiagMetric) GetKind ¶ added in v0.17.0
func (x *DiagMetric) GetKind() DiagKind
func (*DiagMetric) GetName ¶ added in v0.17.0
func (x *DiagMetric) GetName() string
func (*DiagMetric) GetPoints ¶ added in v0.17.0
func (x *DiagMetric) GetPoints() []*DiagPoint
func (*DiagMetric) GetUnit ¶ added in v0.17.0
func (x *DiagMetric) GetUnit() string
func (*DiagMetric) ProtoMessage ¶ added in v0.17.0
func (*DiagMetric) ProtoMessage()
func (*DiagMetric) ProtoReflect ¶ added in v0.17.0
func (x *DiagMetric) ProtoReflect() protoreflect.Message
func (*DiagMetric) Reset ¶ added in v0.17.0
func (x *DiagMetric) Reset()
func (*DiagMetric) String ¶ added in v0.17.0
func (x *DiagMetric) String() string
type DiagPoint ¶ added in v0.17.0
type DiagPoint struct {
// At most 4 attributes.
Attrs []*DiagAttr `protobuf:"bytes,1,rep,name=attrs,proto3" json:"attrs,omitempty"`
// Counter and gauge value.
Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
// Histogram fields: count, sum, bounds and len(bounds)+1 bucket counts.
Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"`
Bounds []float64 `protobuf:"fixed64,5,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
BucketCounts []uint64 `protobuf:"varint,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
// contains filtered or unexported fields
}
func (*DiagPoint) Descriptor
deprecated
added in
v0.17.0
func (*DiagPoint) GetBucketCounts ¶ added in v0.17.0
func (*DiagPoint) ProtoMessage ¶ added in v0.17.0
func (*DiagPoint) ProtoMessage()
func (*DiagPoint) ProtoReflect ¶ added in v0.17.0
func (x *DiagPoint) ProtoReflect() protoreflect.Message
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 GetDiagnosticsRequest ¶ added in v0.17.0
type GetDiagnosticsRequest struct {
// Highest payload schema the host understands. Zero means 1.
MaxSchemaVersion uint32 `protobuf:"varint,1,opt,name=max_schema_version,json=maxSchemaVersion,proto3" json:"max_schema_version,omitempty"`
// contains filtered or unexported fields
}
func (*GetDiagnosticsRequest) Descriptor
deprecated
added in
v0.17.0
func (*GetDiagnosticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDiagnosticsRequest.ProtoReflect.Descriptor instead.
func (*GetDiagnosticsRequest) GetMaxSchemaVersion ¶ added in v0.17.0
func (x *GetDiagnosticsRequest) GetMaxSchemaVersion() uint32
func (*GetDiagnosticsRequest) ProtoMessage ¶ added in v0.17.0
func (*GetDiagnosticsRequest) ProtoMessage()
func (*GetDiagnosticsRequest) ProtoReflect ¶ added in v0.17.0
func (x *GetDiagnosticsRequest) ProtoReflect() protoreflect.Message
func (*GetDiagnosticsRequest) Reset ¶ added in v0.17.0
func (x *GetDiagnosticsRequest) Reset()
func (*GetDiagnosticsRequest) String ¶ added in v0.17.0
func (x *GetDiagnosticsRequest) String() string
type GetDiagnosticsResponse ¶ added in v0.17.0
type GetDiagnosticsResponse struct {
SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
PluginId string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
// Process start; changes on restart so hosts can detect counter resets.
ProcessStartUnixNs int64 `protobuf:"varint,3,opt,name=process_start_unix_ns,json=processStartUnixNs,proto3" json:"process_start_unix_ns,omitempty"`
// True when the plugin dropped metrics, points or invalid observations.
Truncated bool `protobuf:"varint,4,opt,name=truncated,proto3" json:"truncated,omitempty"`
// At most 24 metrics.
Metrics []*DiagMetric `protobuf:"bytes,5,rep,name=metrics,proto3" json:"metrics,omitempty"`
// contains filtered or unexported fields
}
func (*GetDiagnosticsResponse) Descriptor
deprecated
added in
v0.17.0
func (*GetDiagnosticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDiagnosticsResponse.ProtoReflect.Descriptor instead.
func (*GetDiagnosticsResponse) GetMetrics ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) GetMetrics() []*DiagMetric
func (*GetDiagnosticsResponse) GetPluginId ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) GetPluginId() string
func (*GetDiagnosticsResponse) GetProcessStartUnixNs ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) GetProcessStartUnixNs() int64
func (*GetDiagnosticsResponse) GetSchemaVersion ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) GetSchemaVersion() uint32
func (*GetDiagnosticsResponse) GetTruncated ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) GetTruncated() bool
func (*GetDiagnosticsResponse) ProtoMessage ¶ added in v0.17.0
func (*GetDiagnosticsResponse) ProtoMessage()
func (*GetDiagnosticsResponse) ProtoReflect ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) ProtoReflect() protoreflect.Message
func (*GetDiagnosticsResponse) Reset ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) Reset()
func (*GetDiagnosticsResponse) String ¶ added in v0.17.0
func (x *GetDiagnosticsResponse) 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)
// GetDiagnostics returns a bounded snapshot of in-plugin measurements. The
// host pulls it; plugins never push. Hosts treat plugin_id as a check only
// and stamp identity from their own record.
GetDiagnostics(ctx context.Context, in *GetDiagnosticsRequest, opts ...grpc.CallOption) (*GetDiagnosticsResponse, 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)
// GetDiagnostics returns a bounded snapshot of in-plugin measurements. The
// host pulls it; plugins never push. Hosts treat plugin_id as a check only
// and stamp identity from their own record.
GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, 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) GetDiagnostics ¶ added in v0.17.0
func (UnimplementedPluginLifecycleServer) GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, 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.