Documentation
¶
Index ¶
- Variables
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetLimit() uint64
- func (x *Resource) GetType() Type
- func (x *Resource) GetUsage() uint64
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type State
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( State_name = map[int32]string{ 0: "Normal", 1: "Warning", 2: "Alarm", } State_value = map[string]int32{ "Normal": 0, "Warning": 1, "Alarm": 2, } )
Enum value maps for State.
View Source
var ( Type_name = map[int32]string{ 0: "Memory", 1: "CPU", } Type_value = map[string]int32{ "Memory": 0, "CPU": 1, } )
Enum value maps for Type.
View Source
var File_github_com_Compogo_resource_resource_resource_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_resource_resource_state_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_resource_resource_type_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
Type Type `protobuf:"varint,1,opt,name=Type,proto3,enum=compogo.resource.resource.Type" json:"Type,omitempty"`
Limit uint64 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
Usage uint64 `protobuf:"varint,3,opt,name=Usage,proto3" json:"Usage,omitempty"`
// contains filtered or unexported fields
}
func (*Resource) Descriptor
deprecated
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type State ¶
type State int32
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.