netnswrapper

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// NewNS creates a new named network namespace
	NewNS(nsName string) (ns.NetNS, error)
	// GetNS gets a named network namespace
	GetNS(nsName string) (ns.NetNS, error)
	// GetNSByPath gets a network namespace by whole path
	GetNSByPath(nsPath string) (ns.NetNS, error)
	// UnmountNS deletes a named network namespace
	UnmountNS(nsName string) error
	// ListNS lists all network namespaces
	ListNS() ([]string, error)
}

func NewNetNS

func NewNetNS() Interface

Directories

Path Synopsis
Package mocknetnswrapper is a generated GoMock package.
Package mocknetnswrapper is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL