pub struct ContainerConfig {
pub enabled: bool,
pub docker_socket: String,
pub poll_interval_secs: u64,
pub policy_path: String,
pub auto_isolate: bool,
}Expand description
컨테이너 가드 설정
Fields§
§enabled: bool활성화 여부
docker_socket: StringDocker 소켓 경로
poll_interval_secs: u64모니터링 주기 (초)
policy_path: String격리 정책 파일 경로
auto_isolate: bool자동 격리 활성화
Implementations§
Source§impl ContainerConfig
impl ContainerConfig
Sourcepub fn validate(&self) -> Result<(), IronpostError>
pub fn validate(&self) -> Result<(), IronpostError>
Validate container guard configuration values.
Trait Implementations§
Source§impl Clone for ContainerConfig
impl Clone for ContainerConfig
Source§fn clone(&self) -> ContainerConfig
fn clone(&self) -> ContainerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerConfig
impl Debug for ContainerConfig
Source§impl Default for ContainerConfig
impl Default for ContainerConfig
Source§impl<'de> Deserialize<'de> for ContainerConfigwhere
ContainerConfig: Default,
impl<'de> Deserialize<'de> for ContainerConfigwhere
ContainerConfig: Default,
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
Auto Trait Implementations§
impl Freeze for ContainerConfig
impl RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl UnwindSafe for ContainerConfig
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