Help us shape the future of Go! Take the 2026 Go Developer Survey

resourcequota

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

resourcequota contains a controller that makes resource quota usage observations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodCPU

func PodCPU(pod *api.Pod) *resource.Quantity

PodCPU computes total cpu usage of a pod

func PodMemory

func PodMemory(pod *api.Pod) *resource.Quantity

PodMemory computes the memory usage of a pod

Types

type ResourceQuotaManager

type ResourceQuotaManager struct {
	// contains filtered or unexported fields
}

ResourceQuotaManager is responsible for tracking quota usage status in the system

func NewResourceQuotaManager

func NewResourceQuotaManager(kubeClient client.Interface) *ResourceQuotaManager

NewResourceQuotaManager creates a new ResourceQuotaManager

func (*ResourceQuotaManager) Run

func (rm *ResourceQuotaManager) Run(period time.Duration)

Run begins watching and syncing.

Jump to

Keyboard shortcuts

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