pub enum PackageSource {
Local {
blobs: Option<Vec<PathBuf>>,
rust: Option<RustPackage>,
paths: Vec<MappedPath>,
},
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<PathBuf>>A list of blobs from the Omicron build S3 bucket which should be placed within this package.
rust: Option<RustPackage>Configuration for packages containing Rust binaries.
paths: Vec<MappedPath>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
sourceimpl Debug for PackageSource
impl Debug for PackageSource
sourceimpl<'de> Deserialize<'de> for PackageSource
impl<'de> Deserialize<'de> for PackageSource
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more