sysinfo

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sysinfo provides type definition of the SystemInfo gRPC service

Index

Constants

View Source
const (
	SystemInfo_ProjectInfo_FullMethodName = "/github.com.eclipse_kanto.container_management.containerm.api.services.sysinfo.SystemInfo/ProjectInfo"
)

Variables

View Source
var File_api_services_sysinfo_system_info_proto protoreflect.FileDescriptor
View Source
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

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.

Jump to

Keyboard shortcuts

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