Skip to main content

Module client

Module client 

Source
Expand description

Client-facing wire types shared between the ZLayer daemon and SDK clients (CLI, zlayer-docker, zlayer-py, future language SDKs).

These were originally defined in zlayer-client; they are pure serde DTOs with no transport or async state, so they live here so that crates which want the wire shapes don’t have to pull in the full HTTP client.

Structs§

BuildHandle
Handle returned by the daemon start_build endpoint. Mirrors the wire shape of zlayer_api::handlers::build::TriggerBuildResponse (which is Serialize-only, so we carry a Deserialize mirror here).
BuildSpec
Specification sent to the daemon’s POST /api/v1/build/json endpoint to start an image build against a server-side context path.
Session
Persisted CLI session record (lives at ~/.zlayer/session.json, mode 0600 on Unix).