Crate freta

source ·
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

Freta CLI command line parsing helpers
common data strucutures used by Freta

Structs

Freta Client
AAD App client id
Freta client Config
Client Secret

Enums

Freta errors

Constants

Version of the SDK

Type Definitions

Freta Result wrapper