features

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package features gates Flightbay Enterprise features.

These optional features are enabled by default. Turn them off with:

FLIGHTBAY_ENTERPRISE=0                  every Enterprise feature off
FLIGHTBAY_FEATURES=-reach               just this one off
FLIGHTBAY_ENTERPRISE=0 FLIGHTBAY_FEATURES=traffic   only these on

Agent mode (AGENT=1 or FLIGHTBAY_AGENT=1) trims the desk to what matters for agents: Traffic, the agentic Scorecard, Resources and the Log explorer.

This is a product gate, not a security boundary: anything that must be protected (the hosted service, uploads) enforces its own authentication.

Index

Constants

View Source
const (
	Priorities = "priorities" // best practices: fix-first ranking, points if fixed, severity colours
	Reach      = "reach"      // agent reach: per-agent blast radius, network paths, fixes
	Traffic    = "traffic"    // the Traffic page: ztunnel connections and agentgateway calls, and the "why was this denied?" explainer
	// Activity was its own feature; the agentgateway calls it covered are
	// now a layer of the Traffic page. The name stays so code reads well,
	// and FLIGHTBAY_FEATURES=activity still turns traffic on.
	Activity = Traffic
)

Known features. Add new ones here so the UI and `flightbay-desk features` can list them.

Variables

This section is empty.

Functions

func AgentMode

func AgentMode() bool

AgentMode reports whether the desk runs in agent mode: AGENT=1 or FLIGHTBAY_AGENT=1, or SetAgentMode.

func EnableAll

func EnableAll()

EnableAll turns every Enterprise feature on for this process.

func Enabled

func Enabled(name string) bool

Enabled reports whether a feature is on.

func Map

func Map() map[string]bool

Map returns name -> enabled, for the UI.

func Set

func Set(on map[string]bool)

Set turns features on or off for this process (tests, --enterprise flags). Set(nil) goes back to reading the environment.

func SetAgentMode

func SetAgentMode(on bool)

SetAgentMode turns agent mode on or off for this process (tests, the --agent flag).

Types

type Feature

type Feature struct {
	Name       string `json:"name"`
	Title      string `json:"title"`
	Enterprise bool   `json:"enterprise"`
	Enabled    bool   `json:"enabled"`
}

Feature is one gated capability.

func List

func List() []Feature

List returns every known feature with its state.

Jump to

Keyboard shortcuts

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