pub struct PodmanPromotionPolicy { /* private fields */ }Expand description
Explicit authorization for promoting effective runtime observations into desired intent.
The conservative default promotes nothing. Runtime-assigned and local-resolution values are never promotable through this policy.
Implementations§
Source§impl PodmanPromotionPolicy
impl PodmanPromotionPolicy
Sourcepub const fn conservative() -> Self
pub const fn conservative() -> Self
Creates the conservative policy that retains effective values as observations only.
Sourcepub const fn portable_application() -> Self
pub const fn portable_application() -> Self
Reconstructs the reviewed portable application subset from effective observations.
This does not authorize host bind paths, runtime-assigned values, sensitive environment values, unsupported native fields, or a non-exact target conversion. The CLI uses this policy for ordinary local application imports; the library default stays conservative.
Sourcepub const fn with_effective_bind_mounts(self, enabled: bool) -> Self
pub const fn with_effective_bind_mounts(self, enabled: bool) -> Self
Authorizes or rejects host-local bind-mount promotion.
Sourcepub const fn with_effective_named_volume_mounts(self, enabled: bool) -> Self
pub const fn with_effective_named_volume_mounts(self, enabled: bool) -> Self
Authorizes or rejects portable named-volume mount promotion.
Sourcepub const fn with_effective_named_networks(self, enabled: bool) -> Self
pub const fn with_effective_named_networks(self, enabled: bool) -> Self
Authorizes or rejects named-network attachment promotion.
Sourcepub const fn with_portable_effective_settings(self, enabled: bool) -> Self
pub const fn with_portable_effective_settings(self, enabled: bool) -> Self
Authorizes or rejects the reviewed portable effective-settings subset.
This does not authorize environment-value acquisition. An embedding caller must select
PodmanLens acquisition options separately; redacted entries remain named prerequisites.
Sourcepub const fn promotes_effective_named_volume_mounts(self) -> bool
pub const fn promotes_effective_named_volume_mounts(self) -> bool
Returns whether portable effective named-volume mounts may be promoted.
Sourcepub const fn promotes_effective_bind_mounts(self) -> bool
pub const fn promotes_effective_bind_mounts(self) -> bool
Returns whether effective host-local bind mounts may be promoted.
Sourcepub const fn promotes_effective_named_networks(self) -> bool
pub const fn promotes_effective_named_networks(self) -> bool
Returns whether effective named-network attachments may be promoted.
Sourcepub const fn promotes_portable_effective_settings(self) -> bool
pub const fn promotes_portable_effective_settings(self) -> bool
Returns whether reviewed portable effective settings may be promoted.