mirror of
https://github.com/opencontainers/runc.git
synced 2026-04-24 08:35:53 +08:00
8d180e9658
Implement support for passing Linux Network Devices to the container network namespace. The network device is passed during the creation of the container, before the process is started. It implements the logic defined in the OCI runtime specification. Signed-off-by: Antonio Ojea <aojea@google.com>
8 lines
239 B
Go
8 lines
239 B
Go
package configs
|
|
|
|
// LinuxNetDevice represents a single network device to be added to the container's network namespace.
|
|
type LinuxNetDevice struct {
|
|
// Name of the device in the container namespace.
|
|
Name string `json:"name,omitempty"`
|
|
}
|