MCPcopy
hub / github.com/etcd-io/etcd / Add

Method Add

pkg/featuregate/feature_gate.go:112–112  ·  view source on GitHub ↗

Add adds features to the featureGate.

(features map[Feature]FeatureSpec)

Source from the content-addressed store, hash-verified

110 SetFromMap(m map[string]bool) error
111 // Add adds features to the featureGate.
112 Add(features map[Feature]FeatureSpec) error
113 // GetAll returns a copy of the map of known feature names to feature specs.
114 GetAll() map[Feature]FeatureSpec
115 // OverrideDefault sets a local override for the registered default value of a named

Callers 15

TestFeatureGateFlagFunction · 0.65
TestFeatureGateOverrideFunction · 0.65
TestFeatureGateStringFunction · 0.65
TestNewGeneratorFunction · 0.65
TestNextFunction · 0.65
NewServerFunction · 0.65
listenAndServeMethod · 0.65
NewExpectWithEnvFunction · 0.65

Implementers 1

featureGatepkg/featuregate/feature_gate.go

Calls

no outgoing calls

Tested by 14

TestFeatureGateFlagFunction · 0.52
TestFeatureGateOverrideFunction · 0.52
TestFeatureGateStringFunction · 0.52
TestNewGeneratorFunction · 0.52
TestNextFunction · 0.52
TestGetTimeseriesFunction · 0.52
TestReportFunction · 0.52
TestWeightedReportFunction · 0.52