mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
Support the functionality of save and restore for sandbox state Fixes:#4891 Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
16 lines
399 B
Rust
16 lines
399 B
Rust
// Copyright (c) 2019-2022 Alibaba Cloud
|
|
// Copyright (c) 2019-2022 Ant Group
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
use crate::network::EndpointState;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::cgroups::cgroup_persist::CgroupState;
|
|
#[derive(Serialize, Deserialize, Default)]
|
|
pub struct ResourceState {
|
|
pub endpoint: Vec<EndpointState>,
|
|
pub cgroup_state: Option<CgroupState>,
|
|
}
|