Documentation ¶
Index ¶
- func DecodeTOMLFromPath(path string, v interface{}) error
- func EnsureNetNS(name string) (netns.NsHandle, error)
- func GetNetNS(name string) (netns.NsHandle, error)
- func LinkLocalAddr() *netlink.Addr
- func ReadCloserFromPath(path string) (io.ReadCloser, error)
- func WithNetNS(name string, fn func(handle *netlink.Handle) error) error
- func WriteCloserFromPath(path string) (io.WriteCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTOMLFromPath ¶
DecodeTOMLFromPath decodes the toml file loaded from path Then unmarshal it into the given interface
func EnsureNetNS ¶
EnsureNetNS creates the specified netns if it does not exist
func LinkLocalAddr ¶
LinkLocalAddr generates a RFC 4862 compliant linklocal address, with a random mac address
func ReadCloserFromPath ¶
func ReadCloserFromPath(path string) (io.ReadCloser, error)
ReadCloserFromPath returns a ReadCloser from the given path Path can be a file system path, a http url, or "-" for stdin
func WriteCloserFromPath ¶
func WriteCloserFromPath(path string) (io.WriteCloser, error)
WriteCloserFromPath returns a WriteCloser from the given path Path can be a file system path, or "-" for stdout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.