package ns
import "github.com/dotcloud/docker/libnetwork/ns"
Index ¶
- Variables
- func Init()
- func NlHandle() *netlink.Handle
- func ParseHandlerInt() int
- func SetNamespace() error
Variables ¶
var ( // NetlinkSocketsTimeout represents the default timeout duration for the sockets NetlinkSocketsTimeout = 3 * time.Second )
Functions ¶
func Init ¶
func Init()
Init initializes a new network namespace
func NlHandle ¶
NlHandle returns the netlink handler
func ParseHandlerInt ¶
func ParseHandlerInt() int
ParseHandlerInt transforms the namespace handler into an integer
func SetNamespace ¶
func SetNamespace() error
SetNamespace sets the initial namespace handler
Source Files ¶
- Version
- v23.0.13+incompatible
- Published
- May 29, 2024
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 minutes ago –
Tools for package owners.