resources

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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