featgate

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatGateEnvVarsPrefix = caps.ToScreamingSnake(common.Brand) + "_FEAT_"
	FeatGates             = []*FeatGate{}

	// TODO(v2): always enable
	FeatGateRemoteCharts = NewFeatGate(
		"remote-charts",
		`Allow not only local, but also remote charts as an argument to cli commands. Also adds the "--chart-version" option`,
	)
)

Functions

This section is empty.

Types

type FeatGate added in v1.4.0

type FeatGate struct {
	Name string
	Help string
}

func NewFeatGate added in v1.4.0

func NewFeatGate(name, help string) *FeatGate

func (*FeatGate) Default added in v1.4.0

func (g *FeatGate) Default() bool

func (*FeatGate) Enabled added in v1.4.0

func (g *FeatGate) Enabled() bool

func (*FeatGate) EnvVarName added in v1.4.0

func (g *FeatGate) EnvVarName() string

Jump to

Keyboard shortcuts

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