featuretoggles

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(features Features, sink Sink)

Apply updates the provided Sink with the supplied feature toggle values. Any nil callbacks are skipped, which allows each consumer (controllers, SDK, etc.) to provide only the toggles it needs.

Types

type Features

type Features struct {
	TelemetryEnabled         bool
	TracePropagationEnabled  bool
	VerboseLoggingEnabled    bool
	StepOutputLoggingEnabled bool
	MetricsEnabled           bool
}

Features captures the runtime feature toggles that need to remain consistent across controllers, webhooks, and SDK clients.

type Sink

type Sink struct {
	EnableTelemetry         func(bool)
	EnableTracePropagation  func(bool)
	EnableVerboseLogging    func(bool)
	EnableStepOutputLogging func(bool)
	EnableMetrics           func(bool)
}

Sink defines callbacks that apply feature toggles inside a specific process. Callers may provide only the functions they support.

Jump to

Keyboard shortcuts

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