Crate coreos_stream_metadata

Source
Expand description

Library for interacting with CoreOS stream metadata, used by Fedora CoreOS and RHEL CoreOS.

§Get the URL for FCOS stable stream:

use coreos_stream_metadata::fcos;
let url = fcos::StreamID::Stable.url();

§Deserialize stream data and print URL for OpenStack image

use coreos_stream_metadata::Stream;

let stream: Stream = serde_json::from_reader(std::io::stdin())?;
let openstack = stream.query_thisarch_single("openstack").ok_or_else(|| anyhow::anyhow!("Missing openstack image"))?;
println!("OpenStack image URL: {}", openstack.location);

Modules§

fcos
APIs for interacting specifically with Fedora CoreOS
rhcos
APIs for interacting specifically with RHEL CoreOS

Structs§

Arch
Artifacts for a particular architecture.
Artifact
A downloadable artifact with a URL and detached signature.
ContainerImage
A tagged container image
GcpImage
Image stored in Google Compute Platform.
Images
Public cloud images.
Platform
A specific platform (e.g. aws, gcp)
RegionObject
Region-specific object in an object store, such as on IBMCloud or PowerVS.
ReplicatedImage
An image in all regions of an AWS-like cloud
ReplicatedObject
Objects in an object store for each region, such as on IBMCloud or PowerVS.
SingleImage
An globally-accessible image or an image in a single region of an AWS-like cloud
Stream
Toplevel stream object.

Functions§

this_architecture
Return the RPM/GNU architecture identifier for the current binary.

Type Aliases§

AwsImages
Alias for backward compatibility
AwsRegionImage
Alias for backward compatibility