features

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// XtrabackupSidecar is a feature flag for the XtrabackupSidecar feature
	XtrabackupSidecar featuregate.Feature = "XtrabackupSidecar"
)

Variables

This section is empty.

Functions

func Enabled

func Enabled(ctx context.Context, f featuregate.Feature) bool

Enabled indicates if a Feature is enabled in the Gate contained in ctx. It returns false when there is no Gate.

func NewContextWithGate

func NewContextWithGate(ctx context.Context, gate featuregate.FeatureGate) context.Context

NewContextWithGate returns a copy of ctx containing gate. Check it using Enabled.

func NewGate

NewGate returns a new FeatureGate.

func ShowAssigned

func ShowAssigned(ctx context.Context) string

ShowAssigned returns the features enabled or disabled by Set and SetFromMap in the Gate contained in ctx.

func ShowEnabled

func ShowEnabled(ctx context.Context) string

ShowEnabled returns all the features enabled in the Gate contained in ctx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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