misc

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPNetAll = []net.IPNet{{IP: _4b[:], Mask: _4b[:]}, {IP: _16b[:], Mask: _16b[:]}}

IPNetALL is simply 0/0 plus ::/0

Functions

func LinkLocalAddress

func LinkLocalAddress(key wgtypes.Key) net.IP

func NewLLAddr

func NewLLAddr() *netlink.Addr

NewLLAddr generates a RFC 4862 compliant linklocal address, from a random mac address

func NewReadCloser

func NewReadCloser(path string) (io.ReadCloser, error)

NewReadCloser returns a ReadCloser from the given path path can be a file system path, a http url, or "-" for stdin

func StringIn

func StringIn(list []string, item string) bool

func UnmarshalHCL

func UnmarshalHCL(path string, v interface{}) error

UnmarshalHCL decodes the hcl file read from path then unmarshal it into the given interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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