Documentation
¶
Index ¶
- Variables
- type Resource
- type ResourceGroup
- type Unit
- func (*Unit) Descriptor() ([]byte, []int)
- func (this *Unit) Equal(that interface{}) bool
- func (u Unit) Equals(other Unit) bool
- func (m *Unit) GetCPU() uint32
- func (m *Unit) GetMemory() uint64
- func (m *Unit) GetStorage() uint64
- func (m *Unit) Marshal() (dAtA []byte, err error)
- func (m *Unit) MarshalTo(dAtA []byte) (int, error)
- func (m *Unit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Unit) ProtoMessage()
- func (m *Unit) Reset()
- func (m *Unit) Size() (n int)
- func (m *Unit) String() string
- func (m *Unit) Unmarshal(dAtA []byte) error
- func (m *Unit) XXX_DiscardUnknown()
- func (m *Unit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Unit) XXX_Merge(src proto.Message)
- func (m *Unit) XXX_Size() int
- func (m *Unit) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ResourceGroup ¶
ResourceGroup is the interface that wraps GetName and GetResources methods
type Unit ¶ added in v0.6.0
type Unit struct { CPU uint32 `protobuf:"varint,1,opt,name=cpu,proto3" json:"cpu" yaml:"cpu"` Memory uint64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory" yaml:"memory"` Storage uint64 `protobuf:"varint,3,opt,name=storage,proto3" json:"storage" yaml:"storage"` }
Unit stores cpu, memory and storage metrics
func (*Unit) Descriptor ¶
func (*Unit) GetStorage ¶
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
func (*Unit) XXX_DiscardUnknown ¶
func (m *Unit) XXX_DiscardUnknown()
func (*Unit) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.