Documentation
¶
Overview ¶
Package machinelimit tells customers when their organization is close to its Machines limit, and where to ask for more.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppOrgSlug ¶
AppOrgSlug finds the app's organization for callers that only know the app. It returns "" on any failure, which keeps Warn and WithRequestLink quiet.
func Refused ¶
Refused reports whether flaps turned down a Machine request. The Machine limit is one of the reasons it gives this status for.
func RequestURL ¶
func Warn ¶
Warn prints one line to stderr when the organization is using 80% or more of its Machines limit. Any failure stays silent.
func WithRequestLink ¶
WithRequestLink adds the request link when flaps refused a Machine and the organization is at its limit. It goes by the numbers rather than the wording of flaps' error, which carries no status code for this.
Types ¶
This section is empty.