Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetlink ¶
NewNetlink returns netlink handle created in the specified netns
Types ¶
type NetnsIsolation ¶
type NetnsIsolation struct {
// contains filtered or unexported fields
}
NetnsIsolation is the recommended implementation as by the wireguard developers It keeps the wireguard sockets and interfaces in different netns to facilitate isolation
func NewNetnsIsolation ¶
func NewNetnsIsolation(group int, transit, target string) (*NetnsIsolation, error)
NewNetnsIsolation takes two arguments: transit and interface namespace the creation of netns is handled internally the links and sockets will be created in the transit namespace and the links will be moved into the interface namespace
func (*NetnsIsolation) LinkAbsent ¶
func (i *NetnsIsolation) LinkAbsent(attrs misc.Link) error
func (*NetnsIsolation) LinkEnsure ¶
func (i *NetnsIsolation) LinkEnsure(attrs misc.Link) (err error)
Click to show internal directories.
Click to hide internal directories.