pub enum PackageSource {
Local {
blobs: Option<Vec<Utf8PathBuf>>,
buildomat_blobs: Option<Vec<PrebuiltBlob>>,
rust: Option<RustPackage>,
paths: Vec<InterpolatedMappedPath>,
},
Prebuilt {
repo: String,
commit: String,
sha256: String,
},
Composite {
packages: Vec<String>,
},
Manual,
}Expand description
Describes the origin of an externally-built package.
Variants§
Local
Fields
§
blobs: Option<Vec<Utf8PathBuf>>A list of blobs from the Omicron build S3 bucket which should be placed within this package.
§
buildomat_blobs: Option<Vec<PrebuiltBlob>>A list of Buildomat blobs that should be placed in this package.
§
rust: Option<RustPackage>Configuration for packages containing Rust binaries.
§
paths: Vec<InterpolatedMappedPath>A set of mapped paths which appear within the archive.
Describes a package which should be assembled locally.
Prebuilt
Downloads the package from the following URL:
https://buildomat.eng.oxide.computer/public/file/oxidecomputer/REPO/image/COMMIT/PACKAGE
Composite
A composite package, created by merging multiple tarballs into one.
Currently, this package can only merge zone images.
Manual
Expects that a package will be manually built and placed into the output directory.
Trait Implementations§
source§impl Clone for PackageSource
impl Clone for PackageSource
source§fn clone(&self) -> PackageSource
fn clone(&self) -> PackageSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PackageSource
impl Debug for PackageSource
source§impl<'de> Deserialize<'de> for PackageSource
impl<'de> Deserialize<'de> for PackageSource
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PackageSource
impl PartialEq for PackageSource
source§fn eq(&self, other: &PackageSource) -> bool
fn eq(&self, other: &PackageSource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PackageSource
Auto Trait Implementations§
impl RefUnwindSafe for PackageSource
impl Send for PackageSource
impl Sync for PackageSource
impl Unpin for PackageSource
impl UnwindSafe for PackageSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more