mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 10:34:24 +01:00
Modify lisense header from 2018 to 2019. 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) 2019 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
|
|
}
|