Expand description
Freta Client
This crate enables communication with the Project Freta service.
§Example
use freta::{Client, ImageFormat::Lime, Result};
let mut client = Client::new().await?;
let image = client
.images_upload(Lime, [("name", "test image")], "./image.lime")
.await?;
client.images_monitor(image.image_id).await?;
client
.artifacts_download(image.image_id, "report.json", "./report.json")
.await?;
println!("{:?}", image);
Re-exports§
pub use crate::models::base::Image;
pub use crate::models::base::ImageFormat;
pub use crate::models::base::ImageId;
pub use crate::models::base::ImageState;
pub use crate::models::base::OwnerId;
Modules§
Structs§
Enums§
- Error
- Freta errors
Constants§
- SDK_
VERSION - Version of the SDK
Type Aliases§
- Result
- Freta Result wrapper