Documentation
¶
Index ¶
- Variables
- func Create(name string) (ns.NetNS, error)
- func Delete(ns ns.NetNS) error
- func Exists(name string) bool
- func GetByName(name string) (ns.NetNS, error)
- func List(prefix string) ([]string, error)
- func Monitor(ctx context.Context, name string) (chan netlink.AddrUpdate, error)
- func Name(ns ns.NetNS) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotNamedNamespace = fmt.Errorf("name space is not named")
)
Functions ¶
func Create ¶
Create creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.