Skip to main content

Crate marketplace_client

Crate marketplace_client 

Source
Expand description

Transport-only client for the Argone marketplace, isolated at the extraction boundary: REST for the auth bootstrap (whoami) and gRPC for Registry.Publish. Carries no crypto — callers assemble signed bytes and hand them over as primitives.

Modules§

proto
The argone.marketplace.v1 wire types, re-exported from the shared marketplace-proto crate. Kept as a proto module (via pub mod proto; in lib.rs) so both crate::proto::… and the public marketplace_client::proto::… path resolve unchanged — the transport code and the gRPC mock test depend on it.

Structs§

CapabilitiesView
Display-grade capability list decoded from proto::Capabilities — no crypto.
Client
Marketplace client. base_url scheme selects TLS: https → rustls, http → plaintext h2c.
DownloadedArtifact
Downloaded artifact reassembled from the Download stream (header-first, then app_wasm chunks) — plain data, no crypto. Callers verify/decode signatures and manifest.
PackageInfo
Full package detail decoded from proto::GetPackageResponse.
PackageRef
PackageSummary
Search result summary decoded from proto::PackageSummary — plain data, no crypto.
PublishParams
UpdateAvailable
Update available for an installed package decoded from proto::UpdateAvailable.
VersionInfo
One published version decoded from proto::VersionInfo.

Enums§

MarketplaceError
One error taxonomy folding both gRPC Status and REST ProblemDetails.