Documentation ¶
Overview ¶
Package sysinfo provides type definition of the SystemInfo gRPC service
Index ¶
- Constants
- Variables
- func RegisterSystemInfoServer(s grpc.ServiceRegistrar, srv SystemInfoServer)
- type ProjectInfoResponse
- func (*ProjectInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectInfoResponse) GetProjectInfo() *sysinfo.ProjectInfo
- func (*ProjectInfoResponse) ProtoMessage()
- func (x *ProjectInfoResponse) ProtoReflect() protoreflect.Message
- func (x *ProjectInfoResponse) Reset()
- func (x *ProjectInfoResponse) String() string
- type SystemInfoClient
- type SystemInfoServer
- type UnimplementedSystemInfoServer
- type UnsafeSystemInfoServer
Constants ¶
const (
SystemInfo_ProjectInfo_FullMethodName = "/github.com.eclipse_kanto.container_management.containerm.api.services.sysinfo.SystemInfo/ProjectInfo"
)
Variables ¶
var File_api_services_sysinfo_system_info_proto protoreflect.FileDescriptor
var SystemInfo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.eclipse_kanto.container_management.containerm.api.services.sysinfo.SystemInfo", HandlerType: (*SystemInfoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProjectInfo", Handler: _SystemInfo_ProjectInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/services/sysinfo/system_info.proto", }
SystemInfo_ServiceDesc is the grpc.ServiceDesc for SystemInfo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSystemInfoServer ¶
func RegisterSystemInfoServer(s grpc.ServiceRegistrar, srv SystemInfoServer)
Types ¶
type ProjectInfoResponse ¶
type ProjectInfoResponse struct { ProjectInfo *sysinfo.ProjectInfo `protobuf:"bytes,1,opt,name=project_info,json=projectInfo,proto3" json:"project_info,omitempty"` // contains filtered or unexported fields }
func (*ProjectInfoResponse) Descriptor
deprecated
func (*ProjectInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProjectInfoResponse.ProtoReflect.Descriptor instead.
func (*ProjectInfoResponse) GetProjectInfo ¶
func (x *ProjectInfoResponse) GetProjectInfo() *sysinfo.ProjectInfo
func (*ProjectInfoResponse) ProtoMessage ¶
func (*ProjectInfoResponse) ProtoMessage()
func (*ProjectInfoResponse) ProtoReflect ¶
func (x *ProjectInfoResponse) ProtoReflect() protoreflect.Message
func (*ProjectInfoResponse) Reset ¶
func (x *ProjectInfoResponse) Reset()
func (*ProjectInfoResponse) String ¶
func (x *ProjectInfoResponse) String() string
type SystemInfoClient ¶
type SystemInfoClient interface {
ProjectInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProjectInfoResponse, error)
}
SystemInfoClient is the client API for SystemInfo 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 NewSystemInfoClient ¶
func NewSystemInfoClient(cc grpc.ClientConnInterface) SystemInfoClient
type SystemInfoServer ¶
type SystemInfoServer interface {
ProjectInfo(context.Context, *emptypb.Empty) (*ProjectInfoResponse, error)
}
SystemInfoServer is the server API for SystemInfo service. All implementations should embed UnimplementedSystemInfoServer for forward compatibility
type UnimplementedSystemInfoServer ¶
type UnimplementedSystemInfoServer struct { }
UnimplementedSystemInfoServer should be embedded to have forward compatible implementations.
func (UnimplementedSystemInfoServer) ProjectInfo ¶
func (UnimplementedSystemInfoServer) ProjectInfo(context.Context, *emptypb.Empty) (*ProjectInfoResponse, error)
type UnsafeSystemInfoServer ¶
type UnsafeSystemInfoServer interface {
// contains filtered or unexported methods
}
UnsafeSystemInfoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemInfoServer will result in compilation errors.