adapter

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAdapter

type IPAdapter struct{}

func (*IPAdapter) EnableIP4Forward

func (i *IPAdapter) EnableIP4Forward() error

type NamespaceAdapter

type NamespaceAdapter struct{}

func (*NamespaceAdapter) GetCurrentNS

func (n *NamespaceAdapter) GetCurrentNS() (ns.NetNS, error)

func (*NamespaceAdapter) GetNS

func (n *NamespaceAdapter) GetNS(path string) (ns.NetNS, error)

type SysctlAdapter

type SysctlAdapter struct{}

func (*SysctlAdapter) Sysctl

func (*SysctlAdapter) Sysctl(name string, params ...string) (string, error)

Jump to

Keyboard shortcuts

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