Files
uncloud/internal/machine/network/wireguard_darwin.go

27 lines
502 B
Go

//go:build darwin
package network
import (
"context"
"errors"
)
type WireGuardNetwork struct{}
func NewWireGuardNetwork() (*WireGuardNetwork, error) {
return &WireGuardNetwork{}, nil
}
func (n *WireGuardNetwork) Configure(config Config) error {
return errors.New("not implemented on darwin")
}
func (n *WireGuardNetwork) Run(ctx context.Context) error {
return errors.New("not implemented on darwin")
}
func (n *WireGuardNetwork) WatchEndpoints() <-chan EndpointChangeEvent {
return nil
}