resourcequota

package
v0.17.1-0...-d3778f5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2015 License: Apache-2.0 Imports: 15 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