atomic_cmd

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

alert.go — `drift atomic alert {add, list, remove}`. Thin wrapper around the API gateway's /ops/atomic/alert endpoints.

egress.go — `drift atomic egress {list, refresh, test}`. Thin wrapper around the API gateway's /ops/atomic/egress endpoints.

list    — show the active mode + declared hostnames + the IPs
          the operator most-recently resolved them to.
refresh — force a fresh DNS resolution + chart re-render. Hit
          this when an allowlisted CDN's IPs change.
test    — local-only pattern match: does <host> match any
          entry on the active allowlist? Doesn't hit the
          cluster — purely a "did I spell it right" tool.

There is intentionally no `add`/`remove`. The Driftfile is the single source of truth — users edit `slice.atomic.egress.hosts` and run `drift project deploy`. The deploy reconcile path invokes `refresh` automatically when the egress section changes (see cli/cmd/project/deploy.go).

fetch.go — `drift atomic fetch [path]`. Walks the tree from a path (default: cwd), finds every Atomic function (a directory holding a file with an @atomic annotation), and runs that language's dependency resolution *in place* — a "tidy" for all functions, all languages, in one command. After it, an editor/LSP sees the deps and `drift atomic run`/`deploy` have nothing left to fetch.

The CLI stays SDK-agnostic: for the interpreted languages it just runs the package manager against whatever the function's manifest declares. Go is the one exception — its go.mod is intentionally bare, so (exactly like the build path) we name the SDK's root module for `go get` to dodge the legacy nested-module pseudo-versions. See atomic_common.DriftGoModule.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert() *cobra.Command

func Auth

func Auth() *cobra.Command

func Delete

func Delete() *cobra.Command

func Egress

func Egress() *cobra.Command

func Element

func Element() *cobra.Command

func Fetch

func Fetch() *cobra.Command

func History

func History() *cobra.Command

func List

func List() *cobra.Command

func Logs

func Logs() *cobra.Command

func Metrics

func Metrics() *cobra.Command

func Redeploy

func Redeploy() *cobra.Command

func Rollback

func Rollback() *cobra.Command

func Trigger

func Trigger() *cobra.Command

Types

This section is empty.

Directories

Path Synopsis
build_go.go — Go-language build path for `drift atomic deploy`.
build_go.go — Go-language build path for `drift atomic deploy`.
new.go — `drift atomic new [name]`.
new.go — `drift atomic new [name]`.
run.go — `drift atomic run <dir>`.
run.go — `drift atomic run <dir>`.

Jump to

Keyboard shortcuts

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