internal/

directory
v0.267.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT

Directories

Path Synopsis
Package apilog captures OpenFGA HTTP traffic.
Package apilog captures OpenFGA HTTP traffic.
Package atomicfile writes a file by staging it next to its destination and renaming it into place only once the caller is satisfied with the contents.
Package atomicfile writes a file by staging it next to its destination and renaming it into place only once the caller is satisfied with the contents.
Package cli holds the shared dependencies threaded through every command: the logger, the loaded config, and the global flag overrides.
Package cli holds the shared dependencies threaded through every command: the logger, the loaded config, and the global flag overrides.
Package client constructs a configured go-openfga client from resolved config.
Package client constructs a configured go-openfga client from resolved config.
Package clierr centralizes how command errors map to user-facing messages and process exit codes, so main can stay a thin shell and every command surfaces failures consistently.
Package clierr centralizes how command errors map to user-facing messages and process exit codes, so main can stay a thin shell and every command surfaces failures consistently.
Package command defines the shared Command abstraction used by every ofga command, mirroring the structure of task-pilot-cli: each command exposes its cobra command, registers its sub-commands, and implements its run logic.
Package command defines the shared Command abstraction used by every ofga command, mirroring the structure of task-pilot-cli: each command exposes its cobra command, registers its sub-commands, and implements its run logic.
api
Package api implements `ofga api`: send a raw request to the OpenFGA API using the active profile's connection and authentication.
Package api implements `ofga api`: send a raw request to the OpenFGA API using the active profile's connection and authentication.
assertions
Package assertions implements `ofga assertions`: read and write the assertion test-suite attached to an authorization model, and run it.
Package assertions implements `ofga assertions`: read and write the assertion test-suite attached to an authorization model, and run it.
base
Package base provides the root `ofga` command: persistent flags, the help banner, and registration of every top-level sub-command.
Package base provides the root `ofga` command: persistent flags, the help banner, and registration of every top-level sub-command.
configcmd
Package configcmd implements `ofga config`: inspect where ofga's configuration lives and what it resolves to.
Package configcmd implements `ofga config`: inspect where ofga's configuration lives and what it resolves to.
model
Package model implements `ofga model`: write, list, inspect, and visualize authorization models (including a colored relation graph).
Package model implements `ofga model`: write, list, inspect, and visualize authorization models (including a colored relation graph).
playground
Package playground implements the interactive `ofga` TUI: a full-screen, Crush-style shell for exploring a store — picking models, browsing tuples, running live checks, and visualizing the authorization model as a graph.
Package playground implements the interactive `ofga` TUI: a full-screen, Crush-style shell for exploring a store — picking models, browsing tuples, running live checks, and visualizing the authorization model as a graph.
profiles
Package profiles implements `ofga profiles`: manage named connection profiles — list, switch, inspect, create, edit and remove them.
Package profiles implements `ofga profiles`: manage named connection profiles — list, switch, inspect, create, edit and remove them.
query
Package query implements `ofga query`: the read-side authorization questions — check, batch-check, expand, list-objects and list-users.
Package query implements `ofga query`: the read-side authorization questions — check, batch-check, expand, list-objects and list-users.
store
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores.
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores.
tuple
Package tuple implements `ofga tuples`: write, delete, read relationship tuples and follow the changelog.
Package tuple implements `ofga tuples`: write, delete, read relationship tuples and follow the changelog.
Package config loads and persists ofga configuration: a set of named connection profiles (contexts) plus the name of the active one.
Package config loads and persists ofga configuration: a set of named connection profiles (contexts) plus the name of the active one.
Package configtest isolates the CLI's on-disk config so a test never reads or writes the developer's real one.
Package configtest isolates the CLI's on-disk config so a test never reads or writes the developer's real one.
Package dsl provides syntax highlighting and syntax-error diagnostics for OpenFGA DSL text, built on the openfga/language ANTLR lexer and parser.
Package dsl provides syntax highlighting and syntax-error diagnostics for OpenFGA DSL text, built on the openfga/language ANTLR lexer and parser.
Package fga holds OpenFGA domain helpers shared by the CLI commands and the TUI: parsing tuple shorthand and turning an authorization model into a graph.
Package fga holds OpenFGA domain helpers shared by the CLI commands and the TUI: parsing tuple shorthand and turning an authorization model into a graph.
Package modeltest runs authorization-model tests declared by an ofga workspace (an ofga.yaml manifest and its *.test.yaml files).
Package modeltest runs authorization-model tests declared by an ofga workspace (an ofga.yaml manifest and its *.test.yaml files).
Package output renders command results either as a styled table/summary for humans or as indented JSON for machines (--json).
Package output renders command results either as a styled table/summary for humans or as indented JSON for machines (--json).
Package prompt provides consistent confirmation gates for destructive commands: interactive y/N (or type-to-confirm) on a terminal, and a required --force flag when running non-interactively so scripts fail safe.
Package prompt provides consistent confirmation gates for destructive commands: interactive y/N (or type-to-confirm) on a terminal, and a required --force flag when running non-interactively so scripts fail safe.
Package readlimit provides bounded reads for user-controlled files, stdin, and HTTP bodies.
Package readlimit provides bounded reads for user-controlled files, stdin, and HTTP bodies.
Package style centralizes the lipgloss palette and reusable styles.
Package style centralizes the lipgloss palette and reusable styles.
Package theme defines named color palettes for the CLI and TUI.
Package theme defines named color palettes for the CLI and TUI.
ui
field
Package field provides a minimal themed form: labeled text inputs with an accent bar on focus, inline validation, tab-cycled focus, and enter-to-submit.
Package field provides a minimal themed form: labeled text inputs with an accent bar on focus, inline validation, tab-cycled focus, and enter-to-submit.
icons
Package icons resolves the process-wide glyph set: auto (the default, which promotes to Nerd Font only on a positive signal), an explicit Nerd Font rung, a universal Unicode fallback, or off for decorative glyphs.
Package icons resolves the process-wide glyph set: auto (the default, which promotes to Nerd Font only on a positive signal), an explicit Nerd Font rung, a universal Unicode fallback, or off for decorative glyphs.
list
Package list wraps bubbles/list with a task-pilot-style delegate: a thick left-border selection accent, title+description rows, and built-in filtering.
Package list wraps bubbles/list with a task-pilot-style delegate: a thick left-border selection accent, title+description rows, and built-in filtering.
logo
Package logo renders the OPENFGA block wordmark, in the spirit of charmbracelet/crush's stylized title.
Package logo renders the OPENFGA block wordmark, in the spirit of charmbracelet/crush's stylized title.
shell
Package shell renders the Crush-style playground frame: a left sidebar (gradient logo + context + nav + status footer), a main content pane, and a bottom status bar, composited flat on a lipgloss canvas with no painted panel backgrounds — structure comes from headers and rules.
Package shell renders the Crush-style playground frame: a left sidebar (gradient logo + context + nav + status footer), a main content pane, and a bottom status bar, composited flat on a lipgloss canvas with no painted panel backgrounds — structure comes from headers and rules.
toast
Package toast renders transient bottom-right status chips that auto-expire.
Package toast renders transient bottom-right status chips that auto-expire.
Package version holds build information, injected at release time via -ldflags.
Package version holds build information, injected at release time via -ldflags.

Jump to

Keyboard shortcuts

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