Skip to content

Commit

Permalink
Add linux placeholders for wireguard interface (supervisor)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay committed Jul 9, 2020
1 parent 4993914 commit 01f9c51
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions supervisor/daemon/wireguard/wginterface/interface_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ package wginterface

import (
"errors"
"net"

"github.com/mysteriumnetwork/node/services/wireguard/wgcfg"
"golang.zx2c4.com/wireguard/tun"
)

// New creates new WgInterface instance.
func New(cfg wgcfg.DeviceConfig, uid string) (*WgInterface, error) {
return nil, errors.New("not implemented")
func createTunnel(requestedInterfaceName string) (tunnel tun.Device, interfaceName string, err error) {
return nil, requestedInterfaceName, errors.New("not implemented")
}

// Down closes device and user space api socket.
func (a *WgInterface) Down() {
func newUAPIListener(interfaceName string) (listener net.Listener, err error) {
return nil, errors.New("not implemented")
}

func applySocketPermissions(interfaceName string, uid string) error {
return errors.New("not implemented")
}

0 comments on commit 01f9c51

Please sign in to comment.