Documentation
¶
Index ¶
Constants ¶
View Source
const ( TierFree = "free" TierStandard = "standard" TierEnterprise = "enterprise" )
Variables ¶
View Source
var ErrInstanceLimit = fmt.Errorf("ratelimit: instance limit reached: %w", commonerrors.ErrConflict)
ErrInstanceLimit is returned when a tenant already has the tier's max instances. On tier downgrade this means the tenant still has more gateways than the new tier allows — delete excess gateways (or keep them on a higher tier) before lowering the plan.
Functions ¶
func IsKnownTier ¶ added in v0.18.0
IsKnownTier reports whether name is a recognized plan label (no numeric caps here).
Types ¶
type Limits ¶
Limits are plan caps stamped by the control plane onto each instance. QuotaPerMonth == 0 means unlimited, MaxInstances == 0 means unlimited.
func (Limits) HasInstanceCap ¶
func (Limits) HasMonthlyQuota ¶
Click to show internal directories.
Click to hide internal directories.