org

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package org provides the `ana org` verb tree: show, members, roles, and permissions. Like internal/auth it is pure dispatch logic composed around an injected Unary function, so it never imports internal/transport — callers adapt their transport client to the narrow Deps contract declared here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(deps Deps) *cli.Group

New returns the `org` verb group. Its children are the leaf `show` command and three nested groups (`members`, `roles`, `permissions`) each with a single `list` child. The returned *cli.Group is safe to register under any name in the root verb table.

Types

type Deps

type Deps struct {
	Unary func(ctx context.Context, path string, req, resp any) error
}

Deps is the injected boundary. A real wiring layer adapts transport.Client to the single function field; tests pass fakes that record the path and request payload so assertions can check the wire-level field names.

Unary performs one Connect-RPC call: the request value is JSON-encoded, the response pointer is JSON-decoded.

Jump to

Keyboard shortcuts

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