MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-remote/src/storage.rs:86–88  ·  view source on GitHub ↗

Create a new client targeting a specific org. The `base_url` should be the full org-scoped URL, e.g., `https://alice.atomic.storage`. The `bearer_token` is a short-lived, client-self-signed EdDSA JWT (see `atomic-cli`'s `commands::token`).

(base_url: &str, org_slug: &str, bearer_token: &str)

Source from the content-addressed store, hash-verified

84 /// `https://alice.atomic.storage`. The `bearer_token` is a short-lived,
85 /// client-self-signed EdDSA JWT (see `atomic-cli`'s `commands::token`).
86 pub fn new(base_url: &str, org_slug: &str, bearer_token: &str) -> Result<Self, RemoteError> {
87 Self::with_delegation(base_url, org_slug, bearer_token, None)
88 }
89
90 /// Create a client that also presents a delegation certificate.
91 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected