features

package
v0.0.0-...-146a38b Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature string

Feature represents a feature of nats-operator.

const (
	// ClusterScoped is used to indicate whether nats-operator should operate at the namespace or cluster level.
	ClusterScoped Feature = "ClusterScoped"
)

type FeatureMap

type FeatureMap map[Feature]bool

FeatureMap is a mapping between features of nats-operator and their current status.

func ParseFeatureMap

func ParseFeatureMap(str string) (FeatureMap, error)

ParseFeatureMap parses the specified string into a feature map.

func (FeatureMap) IsEnabled

func (m FeatureMap) IsEnabled(feature Feature) bool

IsEnabled returns a value indicating whether the specified feature is enabled.

Jump to

Keyboard shortcuts

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