pub struct SandboxImagePermissions {
pub mounts: Vec<SandboxImageMount>,
pub connections: Vec<SandboxImageConnection>,
}Expand description
What a sandbox’s image may do beyond the default root image grant.
Connections bypass the deployment gateway and its connection log, and isolation between the workloads inside the image stays the image’s responsibility; setup says both to the customer.
Fields§
§mounts: Vec<SandboxImageMount>Mounts the image may ask the agent for.
connections: Vec<SandboxImageConnection>Private services the image’s sockets may reach directly.
Implementations§
Source§impl SandboxImagePermissions
impl SandboxImagePermissions
Sourcepub fn validate(&self, resource_id: &str) -> Result<()>
pub fn validate(&self, resource_id: &str) -> Result<()>
Refuses a declaration that is malformed on its own: bad paths, sizes, duplicate entries
and forbidden ports. Whether each connection’s target exists and has private endpoints is
a stack question, see crate::sandbox_image_permissions::validate_connections.
Trait Implementations§
Source§impl Clone for SandboxImagePermissions
impl Clone for SandboxImagePermissions
Source§impl Debug for SandboxImagePermissions
impl Debug for SandboxImagePermissions
Source§impl Default for SandboxImagePermissions
impl Default for SandboxImagePermissions
Source§impl<'de> Deserialize<'de> for SandboxImagePermissions
impl<'de> Deserialize<'de> for SandboxImagePermissions
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
impl Eq for SandboxImagePermissions
Source§impl PartialEq for SandboxImagePermissions
impl PartialEq for SandboxImagePermissions
Source§impl Serialize for SandboxImagePermissions
impl Serialize for SandboxImagePermissions
impl StructuralPartialEq for SandboxImagePermissions
Auto Trait Implementations§
impl Forget for SandboxImagePermissions
impl Freeze for SandboxImagePermissions
impl Move for SandboxImagePermissions
impl RefUnwindSafe for SandboxImagePermissions
impl Send for SandboxImagePermissions
impl Sync for SandboxImagePermissions
impl Unpin for SandboxImagePermissions
impl UnsafeUnpin for SandboxImagePermissions
impl UnwindSafe for SandboxImagePermissions
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.