quota

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quota added in v1.0.0

func (Quota) MergeWith added in v1.0.0

func (pq Quota) MergeWith(targetQuota map[corev1.ResourceName]resourcev1.Quantity) (q Quota)

func (Quota) Resized added in v1.0.0

func (pq Quota) Resized(scale float64) (q Quota)

type QuotaLists

type QuotaLists struct {
	// contains filtered or unexported fields
}

map[paas][quotatype]value type QuotaLists map[string]Quota

func NewQuotaLists

func NewQuotaLists() QuotaLists

func (*QuotaLists) Append

func (pcr *QuotaLists) Append(quotas Quota)

func (QuotaLists) LargestTwo

func (pcr QuotaLists) LargestTwo() Quota

func (QuotaLists) Max

func (pcr QuotaLists) Max() Quota

func (QuotaLists) Min

func (pcr QuotaLists) Min() Quota

func (QuotaLists) OptimalValues

func (pcr QuotaLists) OptimalValues(ratio float64, minQuotas Quota, maxQuotas Quota) Quota

func (QuotaLists) Sum

func (pcr QuotaLists) Sum() Quota

Jump to

Keyboard shortcuts

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