Skip to main content

Crate zlayer_types

Crate zlayer_types 

Source
Expand description

Shared wire types for the ZLayer platform.

This crate is the SDK-facing types crate: API DTOs, OCI image references, and other serde-friendly wire shapes consumed by both the daemon and clients. It is intentionally lightweight — no axum, no tokio, no reqwest. Heavier server-side abstractions live in zlayer-api, zlayer-core, and friends.

Modules§

api
Wire-type modules. Each maps to one logical area; downstream crates import via pub use zlayer_types::<area>::....
auth
Auth wire DTOs.
client
Client-facing wire types shared between the ZLayer daemon and SDK clients (CLI, zlayer-docker, zlayer-py, future language SDKs).
image_ref_serde
Serde helpers to (de)serialize an ImageReference as its OCI-spec canonical string form ([host[:port]/]name[:tag][@digest]) instead of the default struct shape {registry, repository, tag, digest}.
spec
ZLayer V1 Service Specification
storage
Storage Stored* wire types.

Structs§

ImageReference
Canonical OCI image reference.