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.
- Container
Image - A tagged container image
- GcpImage
- Image stored in Google Compute Platform.
- Images
- Public cloud images.
- Platform
- A specific platform (e.g.
aws
,gcp
) - Region
Object - Region-specific object in an object store, such as on IBMCloud or PowerVS.
- Replicated
Image - An image in all regions of an AWS-like cloud
- Replicated
Object - Objects in an object store for each region, such as on IBMCloud or PowerVS.
- Single
Image - 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
- AwsRegion
Image - Alias for backward compatibility