mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
committed by
Antonio Ojea
parent
ed5df5f96f
commit
889c7b272f
+8
@@ -236,6 +236,8 @@ type Linux struct {
|
||||
Namespaces []LinuxNamespace `json:"namespaces,omitempty"`
|
||||
// Devices are a list of device nodes that are created for the container
|
||||
Devices []LinuxDevice `json:"devices,omitempty"`
|
||||
// NetDevices are key-value pairs, keyed by network device name on the host, moved to the container's network namespace.
|
||||
NetDevices map[string]LinuxNetDevice `json:"netDevices,omitempty"`
|
||||
// Seccomp specifies the seccomp security settings for the container.
|
||||
Seccomp *LinuxSeccomp `json:"seccomp,omitempty"`
|
||||
// RootfsPropagation is the rootfs mount propagation mode for the container.
|
||||
@@ -491,6 +493,12 @@ type LinuxDevice struct {
|
||||
GID *uint32 `json:"gid,omitempty"`
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// LinuxDeviceCgroup represents a device rule for the devices specified to
|
||||
// the device controller
|
||||
type LinuxDeviceCgroup struct {
|
||||
|
||||
+8
@@ -48,6 +48,7 @@ type Linux struct {
|
||||
Selinux *Selinux `json:"selinux,omitempty"`
|
||||
IntelRdt *IntelRdt `json:"intelRdt,omitempty"`
|
||||
MountExtensions *MountExtensions `json:"mountExtensions,omitempty"`
|
||||
NetDevices *NetDevices `json:"netDevices,omitempty"`
|
||||
}
|
||||
|
||||
// Cgroup represents the "cgroup" field.
|
||||
@@ -143,3 +144,10 @@ type IDMap struct {
|
||||
// Nil value means "unknown", not "false".
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
// NetDevices represents the "netDevices" field.
|
||||
type NetDevices struct {
|
||||
// Enabled is true if network devices support is compiled in.
|
||||
// Nil value means "unknown", not "false".
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ const (
|
||||
VersionPatch = 1
|
||||
|
||||
// VersionDev indicates development branch. Releases will be empty string.
|
||||
VersionDev = ""
|
||||
VersionDev = "+dev"
|
||||
)
|
||||
|
||||
// Version is the specification version that the package types support.
|
||||
|
||||
Reference in New Issue
Block a user