Documentation ¶
Index ¶
- func GetResourceQuotasStatusByNamespace(namespaceStatuses quotav1.ResourceQuotasStatusByNamespace, namespace string) (corev1.ResourceQuotaStatus, bool)
- func InsertResourceQuotasStatus(namespaceStatuses *quotav1.ResourceQuotasStatusByNamespace, ...)
- func IsErrorLimitExceeded(err error) bool
- func IsErrorQuotaExceeded(err error) bool
- func RemoveResourceQuotasStatusByNamespace(namespaceStatuses *quotav1.ResourceQuotasStatusByNamespace, namespace string)
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 ¶
IsErrorLimitExceeded returns true if the given error is a limit error.
func IsErrorQuotaExceeded ¶
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.
Click to show internal directories.
Click to hide internal directories.