resourcequota

package
v1.2.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 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

NewResourceQuota creates a new resource quota admission control handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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