package
0.31.3
Repository: https://github.com/snyk/policy-engine.git
Documentation: pkg.go.dev

# Functions

GetCurrent takes an experiment name and returns the experiment value representing that expression if and only if it is a current experiment.
NewSet constructs a new Set with the given experiments as its initial members.
OverrideForTesting temporarily overrides the global tables of experiments in order to allow for a predictable set when unit testing the experiments infrastructure code.
SetUnion constructs a new Set containing the members of all of the given sets.

# Constants

All active and defunct experiments must be represented by constants whose internal string values are unique.
All active and defunct experiments must be represented by constants whose internal string values are unique.
All active and defunct experiments must be represented by constants whose internal string values are unique.
All active and defunct experiments must be represented by constants whose internal string values are unique.
All active and defunct experiments must be represented by constants whose internal string values are unique.

# Structs

ConcludedError is the error type returned by GetCurrent when the requested experiment is recognized as concluded.
UnavailableError is the error type returned by GetCurrent when the requested experiment is not recognized at all.

# Type aliases

Experiment represents a particular experiment, which can be activated independently of all other experiments.
Set is a collection of experiments where every experiment is either a member or not.