func Equals(a corev1.ResourceList, b corev1.ResourceList) bool { … }
func LessThanOrEqual(a corev1.ResourceList, b corev1.ResourceList) (bool, []corev1.ResourceName) { … }
func Max(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList { … }
func Add(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList { … }
func SubtractWithNonNegativeResult(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList { … }
func Subtract(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList { … }
func Mask(resources corev1.ResourceList, names []corev1.ResourceName) corev1.ResourceList { … }
func ResourceNames(resources corev1.ResourceList) []corev1.ResourceName { … }
func Contains(items []corev1.ResourceName, item corev1.ResourceName) bool { … }
func ContainsPrefix(prefixSet []string, item corev1.ResourceName) bool { … }
func Intersection(a []corev1.ResourceName, b []corev1.ResourceName) []corev1.ResourceName { … }
func Difference(a []corev1.ResourceName, b []corev1.ResourceName) []corev1.ResourceName { … }
func IsZero(a corev1.ResourceList) bool { … }
func RemoveZeros(a corev1.ResourceList) corev1.ResourceList { … }
func IsNegative(a corev1.ResourceList) []corev1.ResourceName { … }
func ToSet(resourceNames []corev1.ResourceName) sets.String { … }
func CalculateUsage(namespaceName string, scopes []corev1.ResourceQuotaScope, hardLimits corev1.ResourceList, registry Registry, scopeSelector *corev1.ScopeSelector) (corev1.ResourceList, error) { … }