model

package
v0.269.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 37 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 model implements `ofga model`: write, list, inspect, and visualize authorization models (including a colored relation graph).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputTypes added in v0.268.0

func OutputTypes() map[string]any

OutputTypes maps each model command's full path to what it prints under --json. Write is hand-written: it prints a dry-run preview or the write response depending on --dry-run.

Types

type Command

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

Command is the `model` command group.

func New

func New(cli *cli.CLI) *Command

New builds the model command group.

func (*Command) Command

func (c *Command) Command() *cobra.Command

Command returns the cobra command.

func (*Command) RegisterSubCommands

func (c *Command) RegisterSubCommands()

RegisterSubCommands wires the model sub-commands.

Jump to

Keyboard shortcuts

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