Struct northstar_runtime::npk::manifest::Manifest
source · pub struct Manifest {Show 21 fields
pub name: Name,
pub version: Version,
pub console: Option<Console>,
pub init: Option<NonNulString>,
pub args: Vec<NonNulString>,
pub env: HashMap<NonNulString, NonNulString>,
pub uid: u16,
pub gid: u16,
pub sched: Option<Sched>,
pub mounts: HashMap<MountPoint, Mount>,
pub autostart: Option<Autostart>,
pub cgroups: Option<CGroups>,
pub network: Option<Network>,
pub seccomp: Option<Seccomp>,
pub selinux: Option<Selinux>,
pub capabilities: HashSet<Capability>,
pub suppl_groups: HashSet<NonNulString>,
pub rlimits: HashMap<RLimitResource, RLimitValue>,
pub sockets: HashMap<NonNulString, Socket>,
pub io: Option<Io>,
pub custom: Option<Value>,
}
Expand description
Northstar package manifest
Fields§
§name: Name
Name of container
version: Version
Container version
console: Option<Console>
Pass a console fd number in NORTHSTAR_CONSOLE
init: Option<NonNulString>
Path to init
args: Vec<NonNulString>
Additional arguments for the application invocation
env: HashMap<NonNulString, NonNulString>
Environment passed to container
uid: u16
UID
gid: u16
GID
sched: Option<Sched>
Scheduling parameter.
mounts: HashMap<MountPoint, Mount>
List of bind mounts and resources
autostart: Option<Autostart>
Autostart this container upon northstar startup
cgroups: Option<CGroups>
CGroup configuration
network: Option<Network>
Network configuration. Unshare the network if omitted.
seccomp: Option<Seccomp>
Seccomp configuration
selinux: Option<Selinux>
SELinux configuration
capabilities: HashSet<Capability>
Capabilities
suppl_groups: HashSet<NonNulString>
String containing group names to give to new container
rlimits: HashMap<RLimitResource, RLimitValue>
Resource limits
sockets: HashMap<NonNulString, Socket>
Sockets.
io: Option<Io>
IO configuration
custom: Option<Value>
Optional custom data. The runtime doesn’t use this.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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 Manifest
impl PartialEq for Manifest
source§impl<'v_a> ValidateArgs<'v_a> for Manifest
impl<'v_a> ValidateArgs<'v_a> for Manifest
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
impl Eq for Manifest
impl StructuralEq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.