features

package
v0.0.0-...-0cb28c9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 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 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 (

	// 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 FeatureFlag
	CountCertificatesExact
	IPv6First
	AllowRenewalFirstRL
	// Allow issuance of wildcard domains for ACMEv2
	WildcardDomains
	// Copy authz status to challenge status
	ForceConsistentStatus
	// Enforce prevention of use of disabled challenge types
	EnforceChallengeDisable
	// Ensure there is headroom in RPC timeouts to return an error to the client
	RPCHeadroom
	// Allow TLS-SNI in new-authz that are revalidating for previous issuance
	TLSSNIRevalidation
	EmbedSCTs
	// CancelCTSubmissions is deprecated
	CancelCTSubmissions
	VAChecksGSB
	// Return errors to ACMEv2 clients that do not send the correct JWS
	// Content-Type header
	EnforceV2ContentType
	// Reject new-orders that contain a hostname redundant with a wildcard.
	EnforceOverlappingWildcards
	// Set orders to status "ready" when they are awaiting finalization
	OrderReadyStatus
	// Check CAA and respect validationmethods parameter.
	CAAValidationMethods
	// Check CAA and respect accounturi parameter.
	CAAAccountURI
	// Honour draft-ietf-acme-13's keyrollover
	ACME13KeyRollover
)

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