open-vault/helper/experiments/experiments.go

20 lines
538 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package experiments
2023-01-23 19:26:49 +00:00
const VaultExperimentEventsAlpha1 = "events.alpha1"
var validExperiments = []string{
2023-01-23 19:26:49 +00:00
VaultExperimentEventsAlpha1,
}
// ValidExperiments exposes the list without exposing a mutable global variable.
// Experiments can only be enabled when starting a server, and will typically
// enable pre-GA API functionality.
func ValidExperiments() []string {
result := make([]string, len(validExperiments))
copy(result, validExperiments)
return result
}