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

package wguser

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

Package wguser provides internal access to the userspace WireGuard configuration protocol interface.

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


Package Files

client.go configure.go conn_unix.go doc.go parse.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields

A Client provides access to userspace WireGuard device information.

func New Uses

func New() (*Client, error)

New creates a new Client.

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.

Package wguser imports 14 packages (graph) and is imported by 1 packages. Updated 2019-12-10. Refresh now. Tools for package owners.