smegmesh/pkg/wg/stubs.go

16 lines
343 B
Go
Raw Normal View History

2023-11-05 19:03:58 +01:00
package wg
type WgInterfaceManipulatorStub struct{}
func (i *WgInterfaceManipulatorStub) CreateInterface(port int) (string, error) {
return "", nil
2023-11-05 19:03:58 +01:00
}
func (i *WgInterfaceManipulatorStub) AddAddress(ifName string, addr string) error {
return nil
}
func (i *WgInterfaceManipulatorStub) RemoveInterface(ifName string) error {
2023-11-05 19:03:58 +01:00
return nil
}