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 ¶
- func Alert() *cobra.Command
- func Auth() *cobra.Command
- func Delete() *cobra.Command
- func Egress() *cobra.Command
- func Element() *cobra.Command
- func Fetch() *cobra.Command
- func History() *cobra.Command
- func List() *cobra.Command
- func Logs() *cobra.Command
- func Metrics() *cobra.Command
- func Redeploy() *cobra.Command
- func Rollback() *cobra.Command
- func Trigger() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Source Files
¶
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>`. |