Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FeatureGates = NewFeatureGate()
FeatureGates is the global feature gate that can be used to check if a feature flag is enabled or disabled
Functions ¶
func NewFeatureGate ¶ added in v0.6.0
func NewFeatureGate() featureFlag
NewFeatureGate gets a new map with the default feature gates for the application
func ValidateDependencies ¶ added in v1.8.0
Ensures features are disabled if their dependencies are unmet Returns true if a feature is enabled after validation
Types ¶
type Feature ¶
type Feature string
Feature is a typed string for a given feature
const ( // GPTBasedUUID feature flag is used to enable the // blockdevice UUID algorithm mentioned in // https://github.com/openebs/openebs/pull/2666 GPTBasedUUID Feature = "GPTBasedUUID" // APIService feature flag starts the GRPC server which provides functionality to manage block devices APIService Feature = "APIService" UseOSDisk Feature = "UseOSDisk" // ChangeDetection is used to enable detecting changes to // blockdevice size, filesystem, and mount-points. ChangeDetection Feature = "ChangeDetection" // PartitionTableUUID feature flag is used to enable use a // partition table uuid instead of create partition described in // https://github.com/openebs/node-disk-manager/issues/621 . // This feature must enabled with GPTBasedUUID. PartitionTableUUID Feature = "PartitionTableUUID" )
Click to show internal directories.
Click to hide internal directories.