featureflags

package
v2.9.0-dev.dbc482d5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureFlag

type FeatureFlag struct {
	// contains filtered or unexported fields
}

FeatureFlag represents a command line switch to turn certain features ON or OFF. Values are read from environment variables defined by the feature flag. The feature flag can have default values that are used when the resp. environment variable does not exist

func Buckets added in v2.7.0

func Buckets() FeatureFlag

Buckets toggles whether the Grail bucket type can be used. Introduced: (inactive) 2023-08-09 ->

func ConsistentUUIDGeneration

func ConsistentUUIDGeneration() FeatureFlag

ConsistentUUIDGeneration returns the feature flag controlling whether generated UUIDs use consistent separator characters regardless of OS This is default true and just exists to get old, technically buggy behavior on Windows again if needed. Introduced: 2023-05-25; v2.2.0

func DangerousCommands

func DangerousCommands() FeatureFlag

DangerousCommands returns the feature flag that tells whether dangerous commands for the CLI are enabled or not

func DependencyGraphBasedDeploy added in v2.6.0

func DependencyGraphBasedDeploy() FeatureFlag

DependencyGraphBasedDeploy toggles whether we use graphs for deployment. Introduced: (inactive) 2023-07-27 -> (active) 2023-08-22; v2.8.0

func DependencyGraphBasedDeployParallel added in v2.6.0

func DependencyGraphBasedDeployParallel() FeatureFlag

DependencyGraphBasedDeployParallel toggles whether we use parallel graph based deployment Introduced: (inactive) 2023-07-27 -> (active) 2023-08-22; v2.8.0

func DependencyGraphBasedSort added in v2.6.0

func DependencyGraphBasedSort() FeatureFlag

DependencyGraphBasedSort toggles whether sort.GetSortedConfigsForEnvironments use sgraph datastructures and algorithms for sorting projects. Introduced: 2023-07-17; v2.6.0

func DownloadFilter

func DownloadFilter() FeatureFlag

DownloadFilter returns the feature flag controlling whether download filters out configurations that we believe can't be managed by config-as-code. Some users may still want to download everything on an environment, and turning off the filters allows them to do so.

func DownloadFilterClassicConfigs

func DownloadFilterClassicConfigs() FeatureFlag

DownloadFilterClassicConfigs returns the feature flag controlling whether download filters are applied to Classic Config API download.

func DownloadFilterSettings

func DownloadFilterSettings() FeatureFlag

DownloadFilterSettings returns the feature flag controlling whether general filters are applied to Settings download.

func DownloadFilterSettingsUnmodifiable

func DownloadFilterSettingsUnmodifiable() FeatureFlag

DownloadFilterSettingsUnmodifiable returns the feature flag controlling whether Settings marked as unmodifiable by their dtclient.SettingsModificationInfo are filtered out on download.

func Entities

func Entities() FeatureFlag

Entities returns the feature flag that tells whether Dynatrace Entities download/matching is enabled or not Feature slated for removal!

func FastDependencyResolver

func FastDependencyResolver() FeatureFlag

FastDependencyResolver returns the feature flag controlling whether the fast (but memory intensive) Aho-Corasick algorithm based dependency resolver is used when downloading. If set to false, the old naive and CPU intensive resolver is used. This flag is permanent as the fast resolver has significant memory cost.

func ManagementZoneSettingsNumericIDs

func ManagementZoneSettingsNumericIDs() FeatureFlag

ManagementZoneSettingsNumericIDs returns the feature flag that tells whether configs of settings type builtin:management-zones are addressed directly via their object ID or their resolved numeric ID when they are referenced. Introduced: 2023-04-18; v2.0.1

func New

func New(envName string, defaultEnabled bool) FeatureFlag

New creates a new FeatureFlag envName is the environment variable the feature flag is loading the values from when evaluated defaultEnabled defines whether the feature flag is enabled or not by default

func UnescapeOnConvert added in v2.8.0

func UnescapeOnConvert() FeatureFlag

UnescapeOnConvert toggles whether converting will remove escape chars from v1 values. Introduced: 2023-09-01; v2.8.0

func VerifyEnvironmentType

func VerifyEnvironmentType() FeatureFlag

VerifyEnvironmentType returns the feature flag that tells whether the environment check at the beginning of execution is enabled or not. Introduced: before 2023-04-27; v2.0.0

func (FeatureFlag) Enabled

func (ff FeatureFlag) Enabled() bool

Enabled evaluates the feature flag. Feature flags are considered to be "enabled" if their resp. environment variable is set to 1, t, T, TRUE, true or True. Feature flags are considered to be "disabled" if their resp. environment variable is set to 0, f, F, FALSE, false or False.

func (FeatureFlag) EnvName

func (ff FeatureFlag) EnvName() string

EnvName gives back the environment variable name for the feature flag

Jump to

Keyboard shortcuts

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