dashboard

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package dashboard provides the `ana dashboard` verb tree: list, folders, get, spawn, health. Like its sibling command packages it is pure dispatch glue around an injected Unary RPC call so the package never imports internal/transport or internal/config — 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 `dashboard` verb group. 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 narrow injection boundary. Unary JSON-encodes req, POSTs it to path, and JSON-decodes the response into *resp. A concrete wiring layer adapts transport.Client to this function field; tests pass a recording fake.

Jump to

Keyboard shortcuts

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