mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-04 06:54:28 +01:00
Fixes #803 The disk persist data should be "versioned" and baselined, any modification in persist data should be considered potential break of backward compatibility. Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
33 lines
659 B
Go
33 lines
659 B
Go
// Copyright (c) 2016 Intel Corporation
|
|
// Copyright (c) 2018 Huawei Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package persistapi
|
|
|
|
// ============= sandbox level resources =============
|
|
|
|
// NetworkEndpoint contains network interface information
|
|
type NetworkEndpoint struct {
|
|
Type string
|
|
|
|
// ID used to pass the netdev option to qemu
|
|
ID string
|
|
|
|
// Name of the interface
|
|
Name string
|
|
|
|
// Index of interface
|
|
Index int
|
|
}
|
|
|
|
// NetworkInfo contains network information of sandbox
|
|
type NetworkInfo struct {
|
|
NetNsPath string
|
|
NetmonPID int
|
|
NetNsCreated bool
|
|
InterworkingModel string
|
|
Endpoints []NetworkEndpoint
|
|
}
|