pub struct CogPackInput {
pub cog_dir: PathBuf,
pub binaries: Vec<(String, PathBuf)>,
pub source: PackageSource,
pub cognitum_record: Option<PathBuf>,
pub redistributable: bool,
pub provenance: Option<PathBuf>,
pub allow_no_provenance: bool,
}Expand description
Inputs to pack_cog.
Fields§
§cog_dir: PathBufDirectory holding cog.toml.
binaries: Vec<(String, PathBuf)>(arch, binary path) pairs.
source: PackageSourceProvenance.
cognitum_record: Option<PathBuf>Optional Cognitum ADR-154/155 release record to carry.
redistributable: boolSign the package as redistributable (see
CogPackageBody::redistributable). Default for a packer: false.
provenance: Option<PathBuf>Explicit provenance.json describing the binaries. Otherwise the cog
dir’s is read, and one next to each binary (where weaver cog install
writes it).
allow_no_provenance: boolAllow redistributable with no provenance.json anywhere. Without it,
sharing a package needs evidence the binary is not a licensed Cognitum
one.
Trait Implementations§
Source§impl Clone for CogPackInput
impl Clone for CogPackInput
Source§impl Debug for CogPackInput
impl Debug for CogPackInput
Auto Trait Implementations§
impl Freeze for CogPackInput
impl RefUnwindSafe for CogPackInput
impl Send for CogPackInput
impl Sync for CogPackInput
impl Unpin for CogPackInput
impl UnsafeUnpin for CogPackInput
impl UnwindSafe for CogPackInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more