types

package
v0.8.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource added in v0.6.0

type Resource struct {
	Unit  Unit
	Count uint32
}

Resource stores Unit details and Count value

type ResourceGroup

type ResourceGroup interface {
	GetName() string
	GetResources() []Resource
}

ResourceGroup is the interface that wraps GetName and GetResources methods

type Unit added in v0.6.0

type Unit struct {
	CPU     uint32 `json:"cpu"`
	Memory  uint64 `json:"memory"`
	Storage uint64 `json:"storage"`
}

Unit stores cpu, memory and storage metrics

func (Unit) Equals added in v0.6.0

func (u Unit) Equals(other Unit) bool

Equals compare given unit with receiver unit

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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