Expand description
Phase 39: Registry Client
HTTP client for communicating with the LOGOS package registry.
This module provides the RegistryClient for authenticated API calls to
the package registry, along with supporting types for package metadata and
error handling.
§Architecture
The registry client uses ureq for HTTP requests with Bearer token
authentication. All requests are made over HTTPS to the configured registry
URL (defaulting to registry.logicaffeine.com).
§Example
use logicaffeine_cli::project::registry::{RegistryClient, PublishMetadata};
let client = RegistryClient::new("https://registry.logicaffeine.com", "tok_xxx");
// Validate authentication
let user = client.validate_token()?;
println!("Authenticated as: {}", user.login);Structs§
- Publish
Metadata - Metadata submitted when publishing a package.
- Publish
Result - Response from a successful publish operation.
- Registry
Client - HTTP client for the LOGOS package registry API.
- User
Info - User information returned from the registry’s
/auth/meendpoint.
Enums§
- Package
Error - Errors that can occur when creating a package tarball.
- Registry
Error - Errors that can occur during registry API operations.
Functions§
- create_
tarball - Create a gzipped tarball from a LOGOS project.
- is_
git_ dirty - Check if the git working directory has uncommitted changes.