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
Describes a package which should be assembled locally.
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.
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 duplicate 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§impl Serialize for PackageSource
impl Serialize for PackageSource
impl StructuralPartialEq for PackageSource
Auto Trait Implementations§
impl Freeze for PackageSource
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