Documentation ¶
Overview ¶
Package resourcestat is a generated protocol buffer package.
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
- Cloud-Barista: https://github.com/cloud-barista
This Definition is interfaces between MCISM Master and Agent.
by powerkim@powerkim.co.kr, 2019.03.15
It is generated from these files:
mcism_agent.proto
It has these top-level messages:
ResourceStatRequest ResourceStatReply
Index ¶
- func RegisterResourceStatServer(s *grpc.Server, srv ResourceStatServer)
- type ResourceStatClient
- type ResourceStatReply
- func (*ResourceStatReply) Descriptor() ([]byte, []int)
- func (m *ResourceStatReply) GetCpu() string
- func (m *ResourceStatReply) GetDsk() string
- func (m *ResourceStatReply) GetMem() string
- func (m *ResourceStatReply) GetServername() string
- func (*ResourceStatReply) ProtoMessage()
- func (m *ResourceStatReply) Reset()
- func (m *ResourceStatReply) String() string
- type ResourceStatRequest
- type ResourceStatServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterResourceStatServer ¶
func RegisterResourceStatServer(s *grpc.Server, srv ResourceStatServer)
Types ¶
type ResourceStatClient ¶
type ResourceStatClient interface { // Sends a request of Resource status GetResourceStat(ctx context.Context, in *ResourceStatRequest, opts ...grpc.CallOption) (*ResourceStatReply, error) }
func NewResourceStatClient ¶
func NewResourceStatClient(cc *grpc.ClientConn) ResourceStatClient
type ResourceStatReply ¶
type ResourceStatReply struct { Servername string `protobuf:"bytes,1,opt,name=servername" json:"servername,omitempty"` Cpu string `protobuf:"bytes,2,opt,name=cpu" json:"cpu,omitempty"` Mem string `protobuf:"bytes,3,opt,name=mem" json:"mem,omitempty"` Dsk string `protobuf:"bytes,4,opt,name=dsk" json:"dsk,omitempty"` }
The response message containing the resouce status
func (*ResourceStatReply) Descriptor ¶
func (*ResourceStatReply) Descriptor() ([]byte, []int)
func (*ResourceStatReply) GetCpu ¶
func (m *ResourceStatReply) GetCpu() string
func (*ResourceStatReply) GetDsk ¶
func (m *ResourceStatReply) GetDsk() string
func (*ResourceStatReply) GetMem ¶
func (m *ResourceStatReply) GetMem() string
func (*ResourceStatReply) GetServername ¶
func (m *ResourceStatReply) GetServername() string
func (*ResourceStatReply) ProtoMessage ¶
func (*ResourceStatReply) ProtoMessage()
func (*ResourceStatReply) Reset ¶
func (m *ResourceStatReply) Reset()
func (*ResourceStatReply) String ¶
func (m *ResourceStatReply) String() string
type ResourceStatRequest ¶
type ResourceStatRequest struct { }
The request message with empty
func (*ResourceStatRequest) Descriptor ¶
func (*ResourceStatRequest) Descriptor() ([]byte, []int)
func (*ResourceStatRequest) ProtoMessage ¶
func (*ResourceStatRequest) ProtoMessage()
func (*ResourceStatRequest) Reset ¶
func (m *ResourceStatRequest) Reset()
func (*ResourceStatRequest) String ¶
func (m *ResourceStatRequest) String() string
type ResourceStatServer ¶
type ResourceStatServer interface { // Sends a request of Resource status GetResourceStat(context.Context, *ResourceStatRequest) (*ResourceStatReply, error) }
Click to show internal directories.
Click to hide internal directories.