Documentation
¶
Overview ¶
Package subscription keeps a billed environment's Subscription and EntitlementUsage current. It runs on the leader only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CountUsage ¶
CountUsage keeps the EntitlementUsage's status current. Listing the objects that use compute through the controller's client makes it run again when any of them changes.
func (*Handler) EnsureOverLimitSince ¶
EnsureOverLimitSince starts the over-limit clock when usage is over the subscription's limits, and clears it once usage is back within them. Reading the EntitlementUsage through the controller's client makes it run again when compute changes. Users and devices are counted at each sync, and again after the gateway deletes one.
Click to show internal directories.
Click to hide internal directories.