Documentation
¶
Index ¶
- Variables
- func RegisterNodeVGPUInfoServer(s grpc.ServiceRegistrar, srv NodeVGPUInfoServer)
- type GetNodeVGPUReply
- func (*GetNodeVGPUReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetNodeVGPUReply) GetNodeid() string
- func (x *GetNodeVGPUReply) GetNodevgpuinfo() []*Podusage
- func (*GetNodeVGPUReply) ProtoMessage()
- func (x *GetNodeVGPUReply) ProtoReflect() protoreflect.Message
- func (x *GetNodeVGPUReply) Reset()
- func (x *GetNodeVGPUReply) String() string
- type GetNodeVGPURequest
- func (*GetNodeVGPURequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNodeVGPURequest) GetCtruuid() string
- func (*GetNodeVGPURequest) ProtoMessage()
- func (x *GetNodeVGPURequest) ProtoReflect() protoreflect.Message
- func (x *GetNodeVGPURequest) Reset()
- func (x *GetNodeVGPURequest) String() string
- type NodeVGPUInfoClient
- type NodeVGPUInfoServer
- type Podusage
- type SharedRegionT
- func (*SharedRegionT) Descriptor() ([]byte, []int)deprecated
- func (x *SharedRegionT) GetInitializedFlag() int32
- func (x *SharedRegionT) GetLimit() []uint64
- func (x *SharedRegionT) GetOwnerPid() uint32
- func (x *SharedRegionT) GetProcs() []*ShrregProcSlotT
- func (x *SharedRegionT) GetSem() uint32
- func (x *SharedRegionT) GetSmLimit() []uint64
- func (*SharedRegionT) ProtoMessage()
- func (x *SharedRegionT) ProtoReflect() protoreflect.Message
- func (x *SharedRegionT) Reset()
- func (x *SharedRegionT) String() string
- type ShrregProcSlotT
- func (*ShrregProcSlotT) Descriptor() ([]byte, []int)deprecated
- func (x *ShrregProcSlotT) GetPid() int32
- func (x *ShrregProcSlotT) GetStatus() int32
- func (x *ShrregProcSlotT) GetUsed() []uint64
- func (*ShrregProcSlotT) ProtoMessage()
- func (x *ShrregProcSlotT) ProtoReflect() protoreflect.Message
- func (x *ShrregProcSlotT) Reset()
- func (x *ShrregProcSlotT) String() string
- type UnimplementedNodeVGPUInfoServer
- type UnsafeNodeVGPUInfoServer
Constants ¶
This section is empty.
Variables ¶
var File_noderpc_noderpc_proto protoreflect.FileDescriptor
var NodeVGPUInfo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pluginrpc.NodeVGPUInfo", HandlerType: (*NodeVGPUInfoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNodeVGPU", Handler: _NodeVGPUInfo_GetNodeVGPU_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "noderpc/noderpc.proto", }
NodeVGPUInfo_ServiceDesc is the grpc.ServiceDesc for NodeVGPUInfo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeVGPUInfoServer ¶
func RegisterNodeVGPUInfoServer(s grpc.ServiceRegistrar, srv NodeVGPUInfoServer)
Types ¶
type GetNodeVGPUReply ¶
type GetNodeVGPUReply struct { Nodeid string `protobuf:"bytes,1,opt,name=nodeid,proto3" json:"nodeid,omitempty"` Nodevgpuinfo []*Podusage `protobuf:"bytes,2,rep,name=nodevgpuinfo,proto3" json:"nodevgpuinfo,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*GetNodeVGPUReply) Descriptor
deprecated
func (*GetNodeVGPUReply) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeVGPUReply.ProtoReflect.Descriptor instead.
func (*GetNodeVGPUReply) GetNodeid ¶
func (x *GetNodeVGPUReply) GetNodeid() string
func (*GetNodeVGPUReply) GetNodevgpuinfo ¶
func (x *GetNodeVGPUReply) GetNodevgpuinfo() []*Podusage
func (*GetNodeVGPUReply) ProtoMessage ¶
func (*GetNodeVGPUReply) ProtoMessage()
func (*GetNodeVGPUReply) ProtoReflect ¶
func (x *GetNodeVGPUReply) ProtoReflect() protoreflect.Message
func (*GetNodeVGPUReply) Reset ¶
func (x *GetNodeVGPUReply) Reset()
func (*GetNodeVGPUReply) String ¶
func (x *GetNodeVGPUReply) String() string
type GetNodeVGPURequest ¶
type GetNodeVGPURequest struct { Ctruuid string `protobuf:"bytes,1,opt,name=ctruuid,proto3" json:"ctruuid,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*GetNodeVGPURequest) Descriptor
deprecated
func (*GetNodeVGPURequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeVGPURequest.ProtoReflect.Descriptor instead.
func (*GetNodeVGPURequest) GetCtruuid ¶
func (x *GetNodeVGPURequest) GetCtruuid() string
func (*GetNodeVGPURequest) ProtoMessage ¶
func (*GetNodeVGPURequest) ProtoMessage()
func (*GetNodeVGPURequest) ProtoReflect ¶
func (x *GetNodeVGPURequest) ProtoReflect() protoreflect.Message
func (*GetNodeVGPURequest) Reset ¶
func (x *GetNodeVGPURequest) Reset()
func (*GetNodeVGPURequest) String ¶
func (x *GetNodeVGPURequest) String() string
type NodeVGPUInfoClient ¶
type NodeVGPUInfoClient interface { // Sends a greeting GetNodeVGPU(ctx context.Context, in *GetNodeVGPURequest, opts ...grpc.CallOption) (*GetNodeVGPUReply, error) }
NodeVGPUInfoClient is the client API for NodeVGPUInfo 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 NewNodeVGPUInfoClient ¶
func NewNodeVGPUInfoClient(cc grpc.ClientConnInterface) NodeVGPUInfoClient
type NodeVGPUInfoServer ¶
type NodeVGPUInfoServer interface { // Sends a greeting GetNodeVGPU(context.Context, *GetNodeVGPURequest) (*GetNodeVGPUReply, error) // contains filtered or unexported methods }
NodeVGPUInfoServer is the server API for NodeVGPUInfo service. All implementations must embed UnimplementedNodeVGPUInfoServer for forward compatibility
type Podusage ¶
type Podusage struct { Poduuid string `protobuf:"bytes,1,opt,name=poduuid,proto3" json:"poduuid,omitempty"` Podvgpuinfo *SharedRegionT `protobuf:"bytes,2,opt,name=podvgpuinfo,proto3" json:"podvgpuinfo,omitempty"` // contains filtered or unexported fields }
func (*Podusage) Descriptor
deprecated
func (*Podusage) GetPoduuid ¶
func (*Podusage) GetPodvgpuinfo ¶
func (x *Podusage) GetPodvgpuinfo() *SharedRegionT
func (*Podusage) ProtoMessage ¶
func (*Podusage) ProtoMessage()
func (*Podusage) ProtoReflect ¶
func (x *Podusage) ProtoReflect() protoreflect.Message
type SharedRegionT ¶
type SharedRegionT struct { // contains filtered or unexported fields }
The sharedRegionT struct is the main struct for monitoring vgpu
func (*SharedRegionT) Descriptor
deprecated
func (*SharedRegionT) Descriptor() ([]byte, []int)
Deprecated: Use SharedRegionT.ProtoReflect.Descriptor instead.
func (*SharedRegionT) GetInitializedFlag ¶
func (x *SharedRegionT) GetInitializedFlag() int32
func (*SharedRegionT) GetLimit ¶
func (x *SharedRegionT) GetLimit() []uint64
func (*SharedRegionT) GetOwnerPid ¶
func (x *SharedRegionT) GetOwnerPid() uint32
func (*SharedRegionT) GetProcs ¶
func (x *SharedRegionT) GetProcs() []*ShrregProcSlotT
func (*SharedRegionT) GetSem ¶
func (x *SharedRegionT) GetSem() uint32
func (*SharedRegionT) GetSmLimit ¶
func (x *SharedRegionT) GetSmLimit() []uint64
func (*SharedRegionT) ProtoMessage ¶
func (*SharedRegionT) ProtoMessage()
func (*SharedRegionT) ProtoReflect ¶
func (x *SharedRegionT) ProtoReflect() protoreflect.Message
func (*SharedRegionT) Reset ¶
func (x *SharedRegionT) Reset()
func (*SharedRegionT) String ¶
func (x *SharedRegionT) String() string
type ShrregProcSlotT ¶
type ShrregProcSlotT struct { Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Used []uint64 `protobuf:"varint,2,rep,packed,name=used,proto3" json:"used,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
The sharedProcs contains the sharedRegion
func (*ShrregProcSlotT) Descriptor
deprecated
func (*ShrregProcSlotT) Descriptor() ([]byte, []int)
Deprecated: Use ShrregProcSlotT.ProtoReflect.Descriptor instead.
func (*ShrregProcSlotT) GetPid ¶
func (x *ShrregProcSlotT) GetPid() int32
func (*ShrregProcSlotT) GetStatus ¶
func (x *ShrregProcSlotT) GetStatus() int32
func (*ShrregProcSlotT) GetUsed ¶
func (x *ShrregProcSlotT) GetUsed() []uint64
func (*ShrregProcSlotT) ProtoMessage ¶
func (*ShrregProcSlotT) ProtoMessage()
func (*ShrregProcSlotT) ProtoReflect ¶
func (x *ShrregProcSlotT) ProtoReflect() protoreflect.Message
func (*ShrregProcSlotT) Reset ¶
func (x *ShrregProcSlotT) Reset()
func (*ShrregProcSlotT) String ¶
func (x *ShrregProcSlotT) String() string
type UnimplementedNodeVGPUInfoServer ¶
type UnimplementedNodeVGPUInfoServer struct { }
UnimplementedNodeVGPUInfoServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeVGPUInfoServer) GetNodeVGPU ¶
func (UnimplementedNodeVGPUInfoServer) GetNodeVGPU(context.Context, *GetNodeVGPURequest) (*GetNodeVGPUReply, error)
type UnsafeNodeVGPUInfoServer ¶
type UnsafeNodeVGPUInfoServer interface {
// contains filtered or unexported methods
}
UnsafeNodeVGPUInfoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeVGPUInfoServer will result in compilation errors.