starfleet

package
v0.5.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: PostgreSQL Imports: 7 Imported by: 0

Documentation

Overview

Package starfleet is the pgEdge Starfleet module: one product, one connection, three faces (account-level resources, byoc, managed).

Index

Constants

View Source
const Dir = "internal/starfleet"

Dir is this package's path under the repository root.

Variables

View Source
var Version = "dev"

Version is stamped from versions.env (STARFLEET_VERSION) via -ldflags; a plain `go build` reports the default.

Functions

This section is empty.

Types

type Module

type Module struct{}

Module implements module.Module for the starfleet tree.

func (*Module) Command

func (m *Module) Command(rt *module.Runtime) (*cobra.Command, error)

Command builds the starfleet command tree for the given runtime.

func (*Module) Describe

func (m *Module) Describe() module.ModuleInfo

Describe returns the module's self-description. ContractVersion is reserved and stays empty for an in-process module.

func (*Module) Documents

func (m *Module) Documents() []module.Document

Documents returns every page the starfleet tree ships: the module's own, then byoc's and managed's, so `pgedge llms starfleet byoc database` resolves through one list. The account commands sit at the starfleet level, so they have no page of their own.

func (*Module) Name

func (m *Module) Name() string

Name returns the module's command name.

func (*Module) Reference

func (m *Module) Reference() []byte

Reference returns the starfleet module's index page.

func (*Module) Short

func (m *Module) Short() string

Short returns the module's one-line description.

Directories

Path Synopsis
account
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
cmd
Package cmd wires the account-level commands of the pgedge starfleet tree: authentication, API clients, tenants, invites and memberships — everything the accounts half of the Starfleet API owns.
Package cmd wires the account-level commands of the pgedge starfleet tree: authentication, API clients, tenants, invites and memberships — everything the accounts half of the Starfleet API owns.
Package byoc holds the byoc sub-tree of the starfleet module: its generated API client, its command tree and its reference pages.
Package byoc holds the byoc sub-tree of the starfleet module: its generated API client, its command tree and its reference pages.
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
cmd
Package cmd wires the pgEdge BYOC command tree: the module root, its persistent flags, and the authenticated API client shared by every resource command.
Package cmd wires the pgEdge BYOC command tree: the module root, its persistent flags, and the authenticated API client shared by every resource command.
Package cmd wires the pgedge starfleet command tree: the starfleet root, its persistent connection flags, the account-level commands (auth, doctor, tenant, client, invite, membership), and the byoc and managed sub-trees.
Package cmd wires the pgedge starfleet command tree: the starfleet root, its persistent connection flags, the account-level commands (auth, doctor, tenant, client, invite, membership), and the byoc and managed sub-trees.
Package conn owns the single pgEdge Starfleet API connection: base-URL and credential precedence, the token exchange and cache, the shared HTTP client, and the exit codes every Starfleet module reports.
Package conn owns the single pgEdge Starfleet API connection: base-URL and credential precedence, the token exchange and cache, the shared HTTP client, and the exit codes every Starfleet module reports.
Package connstr assembles a libpq connection string from the parts a database GET returns, for the managed and byoc connection-string verbs.
Package connstr assembles a libpq connection string from the parts a database GET returns, for the managed and byoc connection-string verbs.
Package managed holds the managed sub-tree of the starfleet module: its generated API client, its command tree and its reference pages.
Package managed holds the managed sub-tree of the starfleet module: its generated API client, its command tree and its reference pages.
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
cmd
Package cmd wires the pgEdge Managed command tree: the module root, its persistent flags, and the authenticated API client shared by every resource command.
Package cmd wires the pgEdge Managed command tree: the module root, its persistent flags, and the authenticated API client shared by every resource command.

Jump to

Keyboard shortcuts

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