featureflags

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IacAttachCustomFrameworks        = "k9-iac-attach-custom-frameworks"
	IacAttachDefaultFrameworks       = "k9-iac-attach-default-frameworks"
	IacDisableKicsRule               = "k9-iac-disable-kics-rule"
	IacEnableKicsPlatform            = "k9-iac-enable-kics-platform"
	IacEnableKicsHelmResolver        = "k9-iac-enable-kics-helm-resolver"
	IaCEnableKicsParallelFileParsing = "k9-iac-enable-kics-parallel-file-parsing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagEvaluator

type FlagEvaluator interface {
	Evaluate(flag string) bool
	EvaluateWithOrg(flag string) bool
	EvaluateWithEnv(flag string) bool
	EvaluateWithOrgAndEnv(flag string) bool
	EvaluateWithCustomVariables(flag string, variables map[string]interface{}) (bool, error)
	EvaluateWithOrgAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)
	EvaluateWithEnvAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)
	EvaluateWithOrgAndEnvAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)
}

type LocalEvaluator

type LocalEvaluator struct {
	// contains filtered or unexported fields
}

func NewLocalEvaluator

func NewLocalEvaluator() *LocalEvaluator

func NewLocalEvaluatorWithOverrides

func NewLocalEvaluatorWithOverrides(overrides map[string]bool) *LocalEvaluator

func (LocalEvaluator) Evaluate

func (l LocalEvaluator) Evaluate(flag string) bool

func (LocalEvaluator) EvaluateWithCustomVariables

func (l LocalEvaluator) EvaluateWithCustomVariables(flag string, variables map[string]interface{}) (bool, error)

func (LocalEvaluator) EvaluateWithEnv added in v0.0.3

func (l LocalEvaluator) EvaluateWithEnv(flag string) bool

func (LocalEvaluator) EvaluateWithEnvAndCustomVariables added in v0.0.3

func (l LocalEvaluator) EvaluateWithEnvAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)

func (LocalEvaluator) EvaluateWithOrg

func (l LocalEvaluator) EvaluateWithOrg(flag string) bool

func (LocalEvaluator) EvaluateWithOrgAndCustomVariables

func (l LocalEvaluator) EvaluateWithOrgAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)

func (LocalEvaluator) EvaluateWithOrgAndEnv added in v0.0.3

func (l LocalEvaluator) EvaluateWithOrgAndEnv(flag string) bool

func (LocalEvaluator) EvaluateWithOrgAndEnvAndCustomVariables added in v0.0.3

func (l LocalEvaluator) EvaluateWithOrgAndEnvAndCustomVariables(flag string, variables map[string]interface{}) (bool, error)

Jump to

Keyboard shortcuts

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