MCPcopy Index your code
hub / github.com/coder/coder / UsesLimit

Method UsesLimit

codersdk/deployment.go:298–304  ·  view source on GitHub ↗

UsesLimit returns true if the feature uses a limit, and therefore should not be included in any feature sets (as they are not boolean features).

()

Source from the content-addressed store, hash-verified

296// UsesLimit returns true if the feature uses a limit, and therefore should not
297// be included in any feature sets (as they are not boolean features).
298func (n FeatureName) UsesLimit() bool {
299 return map[FeatureName]bool{
300 FeatureUserLimit: true,
301 FeatureManagedAgentLimit: true,
302 FeatureAIGovernanceUserLimit: true,
303 }[n]
304}
305
306// UsesUsagePeriod returns true if the feature uses period-based usage limits.
307func (n FeatureName) UsesUsagePeriod() bool {

Callers 5

TestPremiumSuperSetFunction · 0.80
ValidateDependenciesMethod · 0.80
FeaturesMethod · 0.80
LicensesEntitlementsFunction · 0.80
TestEntitlementsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestPremiumSuperSetFunction · 0.64
TestEntitlementsFunction · 0.64