resourcestat

package
v0.0.0-...-6e548bc Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package resourcestat is a generated protocol buffer package.

Proof of Concepts for the Cloud-Barista Multi-Cloud Project.

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

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)
}

Jump to

Keyboard shortcuts

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