features

package
v0.0.0-...-1794c56 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled(n FeatureFlag) bool

Enabled returns true if the feature is enabled or false if it isn't, it will panic if passed a feature that it doesn't know.

func Export

func Export(m *expvar.Map)

Export populates a expvar.Map with the state of all of the features.

func Reset

func Reset()

Reset resets the features to their initial state

func Set

func Set(featureSet map[string]bool) error

Set accepts a list of features and whether they should be enabled or disabled, it will return a error if passed a feature name that it doesn't know

Types

type FeatureFlag

type FeatureFlag int
const (
	AllowAccountDeactivation FeatureFlag
	AllowKeyRollover
	ResubmitMissingSCTsOnly
	UseAIAIssuerURL
	AllowTLS02Challenges
	GenerateOCSPEarly
	// For new-authz requests, if there is no valid authz, but there is a pending
	// authz, return that instead of creating a new one.
	ReusePendingAuthz
	CountCertificatesExact
	RandomDirectoryEntry
	IPv6First
	DirectoryMeta
	AllowRenewalFirstRL
	RecheckCAA
	LegacyCAA
)

func (FeatureFlag) String

func (i FeatureFlag) String() string

Jump to

Keyboard shortcuts

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