wgctrl: golang.zx2c4.com/wireguard/wgctrl/internal/wglinux Index | Files | Directories

package wglinux

import "golang.zx2c4.com/wireguard/wgctrl/internal/wglinux"

Package wglinux provides internal access to Linux's WireGuard generic netlink interface.

This package is internal-only and not meant for end users to consume. Please use package wgctrl (an abstraction over this package) instead.

Index

Package Files

client_linux.go configure_linux.go doc.go parse_linux.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

A Client provides access to Linux WireGuard netlink information.

func New Uses

func New() (*Client, bool, error)

New creates a new Client and returns whether or not the generic netlink interface is available.

func (*Client) Close Uses

func (c *Client) Close() error

Close implements wginternal.Client.

func (*Client) ConfigureDevice Uses

func (c *Client) ConfigureDevice(name string, cfg wgtypes.Config) error

ConfigureDevice implements wginternal.Client.

func (*Client) Device Uses

func (c *Client) Device(name string) (*wgtypes.Device, error)

Device implements wginternal.Client.

func (*Client) Devices Uses

func (c *Client) Devices() ([]*wgtypes.Device, error)

Devices implements wginternal.Client.

Directories

PathSynopsis
internal/wghPackage wgh is an auto-generated package which contains constants and types used to access WireGuard information using generic netlink.

Package wglinux imports 14 packages (graph) and is imported by 1 packages. Updated 2020-05-14. Refresh now. Tools for package owners.