quota

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 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 QuotaLists

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

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

func NewQuotaLists

func NewQuotaLists() QuotaLists

func (*QuotaLists) Append

func (pcr *QuotaLists) Append(quotas Quotas)

func (QuotaLists) LargestTwo

func (pcr QuotaLists) LargestTwo() Quotas

func (QuotaLists) Max

func (pcr QuotaLists) Max() Quotas

func (QuotaLists) Min

func (pcr QuotaLists) Min() Quotas

func (QuotaLists) OptimalValues

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

func (QuotaLists) Sum

func (pcr QuotaLists) Sum() Quotas

type Quotas

func NewQuota

func NewQuota(defaults map[string]string) (q Quotas)

func (Quotas) QuotaWithDefaults

func (pq Quotas) QuotaWithDefaults(defaults map[string]string) (q Quotas)

func (Quotas) Resized

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

Jump to

Keyboard shortcuts

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