quota

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Finalizer = "finalizers.kubecube.io/quota"
View Source
const ResourceNvidiaGPU v1.ResourceName = "requests.nvidia.com/gpu"
View Source
const SubFix = "quota"

Variables

Functions

func ClearQuotas added in v1.1.0

func ClearQuotas(l v1.ResourceList) v1.ResourceList

ClearQuotas clear all quotas of give

func ZeroQ

func ZeroQ() resource.Quantity

ZeroQ give the value of zero

Types

type Interface

type Interface interface {
	// Parent get parent quota of current quota return nil
	// if its orphan
	Parent() (*quotav1.CubeResourceQuota, error)

	// Overload return true and reason if this quota exceed limit
	Overload() (bool, string, error)

	// UpdateParentStatus will update parent used resource
	// according to this resource quota. This operation must
	// be idempotent.
	UpdateParentStatus(flush bool) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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