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§
- Build
Handle - Handle returned by the daemon
start_buildendpoint. Mirrors the wire shape ofzlayer_api::handlers::build::TriggerBuildResponse(which isSerialize-only, so we carry aDeserializemirror here). - Build
Spec - Specification sent to the daemon’s
POST /api/v1/build/jsonendpoint 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).