Documentation
¶
Index ¶
- Constants
- func Addons() bool
- func AdminAPI() bool
- func AllFeatures() []string
- func DistributedRunners() bool
- func EnableAll()
- func FeatureDescriptions() map[string]string
- func GlobalRouter() bool
- func Init(log *slog.Logger, flags []string)
- func IsEnabled(name string) bool
- func Reset()
- func RouteOIDC() bool
- func Sagas() bool
Constants ¶
const ( FeatureGlobalRouter = "globalrouter" FeatureDistributedRunners = "distributedrunners" FeatureAdminAPI = "adminapi" FeatureRouteOIDC = "routeoidc" FeatureAddons = "addons" FeatureSagas = "sagas" )
Feature name constants
Variables ¶
This section is empty.
Functions ¶
func Addons ¶ added in v0.4.0
func Addons() bool
Addons returns whether the addons feature is enabled. Enable the addon system for managed backing services
func AdminAPI ¶ added in v0.3.1
func AdminAPI() bool
AdminAPI returns whether the adminapi feature is enabled. Enable the admin API for application management functions
func AllFeatures ¶
func AllFeatures() []string
AllFeatures returns a list of all known feature names
func DistributedRunners ¶
func DistributedRunners() bool
DistributedRunners returns whether the distributedrunners feature is enabled. Schedule jobs across multiple runner nodes
func EnableAll ¶ added in v0.5.0
func EnableAll()
EnableAll enables all known feature flags. This is used when generating help documentation to ensure all commands are registered regardless of feature gating.
func FeatureDescriptions ¶
FeatureDescriptions returns a map of feature names to their descriptions
func GlobalRouter ¶
func GlobalRouter() bool
GlobalRouter returns whether the globalrouter feature is enabled. Use global NAT traversal router for connectivity
func Init ¶
Init initializes the labs feature flags from the provided flag strings. Each flag can be a feature name to enable it, or prefixed with "-" to disable it. Unknown feature names are logged as warnings but do not cause an error. This function should be called once at startup.
func IsEnabled ¶
IsEnabled returns whether a feature is enabled. Returns the default value if Init has not been called.
func Reset ¶
func Reset()
Reset resets the feature flags to their default state. This is primarily useful for testing.
Types ¶
This section is empty.