resourcequota

package
v0.6.1-0...-787c80b Latest Latest
Warning

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

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

Documentation

Overview

resourcequota enforces all incoming requests against any applied quota in the namespace context of the request

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementUsage

func IncrementUsage(a admission.Attributes, status *api.ResourceQuotaStatus, client client.Interface) (bool, error)

IncrementUsage updates the supplied ResourceQuotaStatus object based on the incoming operation Return true if the usage must be recorded prior to admitting the new resource Return an error if the operation should not pass admission control

func NewResourceQuota

func NewResourceQuota(client client.Interface) admission.Interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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