toggle

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// autogen
	AutogenInternalsFlagName    = "autogenInternals"
	AutogenInternalsDescription = "Enables autogen internal policies. When this is 'true' policy rules should not be mutated."

	// protect managed resource
	ProtectManagedResourcesFlagName    = "protectManagedResources"
	ProtectManagedResourcesDescription = "Set the flag to 'true', to enable managed resources protection."
)

Variables

View Source
var (
	AutogenInternals        = newToggle(defaultAutogenInternals, autogenInternalsEnvVar)
	ProtectManagedResources = newToggle(defaultProtectManagedResources, protectManagedResourcesEnvVar)
)

Functions

This section is empty.

Types

type Toggle added in v1.8.0

type Toggle interface {
	Enabled() bool
	Parse(string) error
}

Jump to

Keyboard shortcuts

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