package netns
import "github.com/containerd/containerd/pkg/netns"
Index ¶
Types ¶
type NetNS ¶
type NetNS struct {
// contains filtered or unexported fields
}
NetNS holds network namespace for sandbox
func LoadNetNS ¶
LoadNetNS loads existing network namespace.
func NewNetNS ¶
NewNetNS creates a network namespace for the sandbox
func (*NetNS) Closed ¶
Closed checks whether the network namespace has been closed.
func (*NetNS) GetPath ¶
GetPath returns network namespace path for sandbox container
func (*NetNS) Remove ¶
Remove removes network namespace if it exists and not closed. Remove is idempotent, meaning it might be invoked multiple times and provides consistent result.
Source Files ¶
- Version
- v1.5.9
- Published
- Jan 5, 2022
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 1 second ago –
Tools for package owners.