internal/

directory
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0

Directories

Path Synopsis
api
apierror
Package apierror renders non-2xx API responses into error messages that are actually useful for debugging.
Package apierror renders non-2xx API responses into error messages that are actually useful for debugging.
billing
Package billing provides primitives to interact with the openapi HTTP API.
Package billing provides primitives to interact with the openapi HTTP API.
domainradar
Package domainradar provides primitives to interact with the openapi HTTP API.
Package domainradar provides primitives to interact with the openapi HTTP API.
langsync
Package langsync provides primitives to interact with the openapi HTTP API.
Package langsync provides primitives to interact with the openapi HTTP API.
monitor
Package monitor provides primitives to interact with the openapi HTTP API.
Package monitor provides primitives to interact with the openapi HTTP API.
snapdb
Package snapdb provides primitives to interact with the openapi HTTP API.
Package snapdb provides primitives to interact with the openapi HTTP API.
authtest
Package authtest is a fake Norcube Auth for tests: the OAuth server the CLI signs in with (metadata, authorization redirect, code exchange, refresh with rotation and reuse detection, token exchange, device flow, session upgrade, revocation) plus the few account routes commands call right after a login.
Package authtest is a fake Norcube Auth for tests: the OAuth server the CLI signs in with (metadata, authorization redirect, code exchange, refresh with rotation and reuse detection, token exchange, device flow, session upgrade, revocation) plus the few account routes commands call right after a login.
cli
backup
Package backup implements the `norcube backup ...` command tree (snapdb is the backend service behind the Norcube Backup product).
Package backup implements the `norcube backup ...` command tree (snapdb is the backend service behind the Norcube Backup product).
billing
Package billing implements the `norcube billing ...` command tree: the organization's account status, subscriptions, usage estimate, invoices and spending caps.
Package billing implements the `norcube billing ...` command tree: the organization's account status, subscriptions, usage estimate, invoices and spending caps.
domainradar
Package domainradar implements the `norcube domainradar ...` command tree: domain checks, bulk checks, saved domains, brand monitoring and the name generator.
Package domainradar implements the `norcube domainradar ...` command tree: domain checks, bulk checks, saved domains, brand monitoring and the name generator.
langsync
Package langsync implements the `norcube langsync ...` command tree.
Package langsync implements the `norcube langsync ...` command tree.
langsync/projectcfg
Package projectcfg loads and writes the per-project Langsync config (`.langsync.json`).
Package projectcfg loads and writes the per-project Langsync config (`.langsync.json`).
langsync/projectcfg/translations
Package translations reads and writes language files for the sync command.
Package translations reads and writes language files for the sync command.
monitor
Package monitor implements the `norcube monitor ...` command tree: uptime, SSL certificate and domain expiry monitors, their check history, incidents and alert channels, public status pages, maintenance windows, and an organization-wide status for scripts and CI.
Package monitor implements the `norcube monitor ...` command tree: uptime, SSL certificate and domain expiry monitors, their check history, incidents and alert channels, public status pages, maintenance windows, and an organization-wide status for scripts and CI.
Package clictx carries the global per-invocation state (flags, cancellable context) attached to every cobra command, so subcommand packages can read it without importing the root cli package and creating an import cycle.
Package clictx carries the global per-invocation state (flags, cancellable context) attached to every cobra command, so subcommand packages can read it without importing the root cli package and creating an import cycle.
Package clierr holds the CLI's process exit codes and the error types that select them, so scripts can branch on why a command failed.
Package clierr holds the CLI's process exit codes and the error types that select them, so scripts can branch on why a command failed.
Package cmdutil is the one path from a command's result to stdout.
Package cmdutil is the one path from a command's result to stdout.
Package completion serves dynamic shell completions (organization slugs, namespaces, data source and job ids, language codes) from the API.
Package completion serves dynamic shell completions (organization slugs, namespaces, data source and job ids, language codes) from the API.
Package config reads and writes the CLI's configuration file.
Package config reads and writes the CLI's configuration file.
Package credstore holds the CLI's secrets: one item per key in the OS keyring, or one 0600 file per key when no keyring is available.
Package credstore holds the CLI's secrets: one item per key in the OS keyring, or one 0600 file per key when no keyring is available.
Package orgs turns what the user typed for --org (an id or a slug) into an organization id the services accept.
Package orgs turns what the user typed for --org (an id or a slug) into an organization id the services accept.
Package output renders command results in one of the user-selected formats: a human-friendly table, JSON, YAML, tab-separated text, or just the result's id.
Package output renders command results in one of the user-selected formats: a human-friendly table, JSON, YAML, tab-separated text, or just the result's id.
Package registry is the CLI's list of Norcube services, read from the embedded services.yaml.
Package registry is the CLI's list of Norcube services, read from the embedded services.yaml.
Package resolve decides which profile, endpoints, organization, credentials and output format one command uses, and remembers where each value came from (for `norcube config list`).
Package resolve decides which profile, endpoints, organization, credentials and output format one command uses, and remembers where each value came from (for `norcube config list`).
Package service builds the typed API client a command needs, the same way for every Norcube service: it resolves the profile, the target organization, the service endpoint, a token source for the service's audience (from the selected credential store) and the shared HTTP transport.
Package service builds the typed API client a command needs, the same way for every Norcube service: it resolves the profile, the target organization, the service endpoint, a token source for the service's audience (from the selected credential store) and the shared HTTP transport.
Package sse reads server-sent event streams (text/event-stream), as the HTML standard defines them, and keeps a stream going across dropped connections.
Package sse reads server-sent event streams (text/event-stream), as the HTML standard defines them, and keeps a stream going across dropped connections.
Package term decides what the CLI may do with the user's terminal: is a stream a TTY, may it carry color, may we prompt.
Package term decides what the CLI may do with the user's terminal: is a stream a TTY, may it carry color, may we prompt.
Package transport builds the one HTTP client every part of the CLI uses: generated API clients, the auth client, the token exchange and artifact downloads.
Package transport builds the one HTTP client every part of the CLI uses: generated API clients, the auth client, the token exchange and artifact downloads.

Jump to

Keyboard shortcuts

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