featureflags

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package featureflags implements routines to check if a given feature is enabled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(optionalFeatures OptionalFeatures)

Initialize initializes the feature flag options

func IsEgressPolicyEnabled added in v0.9.0

func IsEgressPolicyEnabled() bool

IsEgressPolicyEnabled returns a boolean indicating if OSM's Egress policy API is enabled

func IsMulticlusterModeEnabled added in v0.9.0

func IsMulticlusterModeEnabled() bool

IsMulticlusterModeEnabled returns a boolean indicating if multicluster mode is enabled in OSM

func IsWASMStatsEnabled added in v0.8.0

func IsWASMStatsEnabled() bool

IsWASMStatsEnabled returns a boolean indicating if custom stats will be generated by a WASM extension to Envoy

Types

type OptionalFeatures

type OptionalFeatures struct {
	WASMStats        bool
	EgressPolicy     bool
	MulticlusterMode bool
}

OptionalFeatures is a struct to enable/disable optional features

var (
	// Features describes whether an optional feature is enabled
	Features OptionalFeatures
)

Jump to

Keyboard shortcuts

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