package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Add returns the result of a + b for each named resource.
CalculateUsage calculates and returns the requested ResourceList usage.
Contains returns true if the specified item is in the list of items.
ContainsPrefix returns true if the specified item has a prefix that contained in given prefix Set.
Difference returns the list of resources resulting from a-b, deduped and sorted.
Equals returns true if the two lists are equivalent.
Intersection returns the intersection of both list of resources, deduped and sorted.
IsNegative returns the set of resource names that have a negative value.
IsZero returns true if each key maps to the quantity value 0.
LessThanOrEqual returns true if a < b for each key in b If false, it returns the keys in a that exceeded b.
Mask returns a new resource list that only has the values with the specified names.
Max returns the result of Max(a, b) for each named resource.
RemoveZeros returns a new resource list that only has no zero values.
ResourceNames returns a list of all resource names in the ResourceList.
Subtract returns the result of a - b for each named resource.
SubtractWithNonNegativeResult - subtracts and returns result of a - b but makes sure we don't return negative values to prevent negative resource usage.
ToSet takes a list of resource names and converts to a string set.

# Structs

UsageStats is result of measuring observed resource use in the system.
UsageStatsOptions is an options structs that describes how stats should be calculated.

# Interfaces

Configuration defines how the quota system is configured.
Evaluator knows how to evaluate quota usage for a particular group resource.
Registry maintains a list of evaluators.

# Type aliases

ListerForResourceFunc knows how to get a lister for a specific resource.