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
type Quota map[corev1.ResourceName]resourcev1.Quantity
func (Quota) MergeWith ¶ added in v1.0.0
func (pq Quota) MergeWith(targetQuota map[corev1.ResourceName]resourcev1.Quantity) (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
Click to show internal directories.
Click to hide internal directories.