quota

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

Functions

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 if this quota exceed limit
	Overload() (bool, 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