wgctrlwrapper

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Device retrieves a WireGuard device by its interface name
	Device(name string) (*wgtypes.Device, error)
	// ConfigureDevice configures a WireGuard device by its interface name
	ConfigureDevice(name string, cfg wgtypes.Config) error
	// Close releases resources used by a Client
	Close() error
}

type Interface

type Interface interface {
	// New creates a new wireguard client
	New() (Client, error)
}

func NewWgCtrl

func NewWgCtrl() Interface

Directories

Path Synopsis
Package mockwgctrlwrapper is a generated GoMock package.
Package mockwgctrlwrapper is a generated GoMock package.

Jump to

Keyboard shortcuts

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