quotautil

package
v0.0.0-...-fad649c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceQuotasStatusByNamespace

func GetResourceQuotasStatusByNamespace(namespaceStatuses quotav1.ResourceQuotasStatusByNamespace, namespace string) (corev1.ResourceQuotaStatus, bool)

func InsertResourceQuotasStatus

func InsertResourceQuotasStatus(namespaceStatuses *quotav1.ResourceQuotasStatusByNamespace, newStatus quotav1.ResourceQuotaStatusByNamespace)

func IsErrorLimitExceeded

func IsErrorLimitExceeded(err error) bool

IsErrorLimitExceeded returns true if the given error is a limit error.

func IsErrorQuotaExceeded

func IsErrorQuotaExceeded(err error) bool

IsErrorQuotaExceeded returns true if the given error stands for a denied request caused by detected quota abuse.

func RemoveResourceQuotasStatusByNamespace

func RemoveResourceQuotasStatusByNamespace(namespaceStatuses *quotav1.ResourceQuotasStatusByNamespace, namespace string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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