ns

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	WithNetNSPath(nspath string, toRun func(ns.NetNS) error) error
	GetNS(nspath string) (ns.NetNS, error)
	GetCurrentNS() (ns.NetNS, error)
}

Interface is the wrapper interface for the containernetworking ns

func New

func New() Interface

New returns a new NS

Directories

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

Jump to

Keyboard shortcuts

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