features

package
v1.8.0-RC2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

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

func ValidateDependencies(feature Feature, flags featureFlag, memoizedValues featureFlag) bool

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL