21
vendor/golang.zx2c4.com/wireguard/wgctrl/internal/wginternal/client.go
generated
vendored
Normal file
21
vendor/golang.zx2c4.com/wireguard/wgctrl/internal/wginternal/client.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package wginternal
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
)
|
||||
|
||||
// ErrReadOnly indicates that the driver backing a device is read-only. It is
|
||||
// a sentinel value used in integration tests.
|
||||
// TODO(mdlayher): consider exposing in API.
|
||||
var ErrReadOnly = errors.New("driver is read-only")
|
||||
|
||||
// A Client is a type which can control a WireGuard device.
|
||||
type Client interface {
|
||||
io.Closer
|
||||
Devices() ([]*wgtypes.Device, error)
|
||||
Device(name string) (*wgtypes.Device, error)
|
||||
ConfigureDevice(name string, cfg wgtypes.Config) error
|
||||
}
|
5
vendor/golang.zx2c4.com/wireguard/wgctrl/internal/wginternal/doc.go
generated
vendored
Normal file
5
vendor/golang.zx2c4.com/wireguard/wgctrl/internal/wginternal/doc.go
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// Package wginternal contains shared internal types for wgctrl.
|
||||
//
|
||||
// This package is internal-only and not meant for end users to consume.
|
||||
// Please use package wgctrl (an abstraction over this package) instead.
|
||||
package wginternal
|
Reference in New Issue
Block a user