Documentation ¶
Overview ¶
package resources has constants and utilities for dealing with resources
Index ¶
Constants ¶
View Source
const ( CPU api.ResourceName = "cpu" Memory api.ResourceName = "memory" )
Variables ¶
This section is empty.
Functions ¶
func GetFloatResource ¶
func GetFloatResource(resources api.ResourceList, name api.ResourceName, def float64) float64
func GetIntegerResource ¶
func GetIntegerResource(resources api.ResourceList, name api.ResourceName, def int) int
func GetStringResource ¶
func GetStringResource(resources api.ResourceList, name api.ResourceName, def string) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.