namespace

package
v0.4.0-rc9-a Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string) (ns.NetNS, error)

Create creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.

func Delete

func Delete(ns ns.NetNS) error

Delete deletes a network namespace

func Exists

func Exists(name string) bool

Exists checks if a network namespace exists or not

func GetByName

func GetByName(name string) (ns.NetNS, error)

GetByName return a namespace by its name

func Monitor

func Monitor(ctx context.Context, name string) (chan netlink.AddrUpdate, error)

Monitor the dmz namespace for updates

Types

This section is empty.

Jump to

Keyboard shortcuts

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