github.com/simpleiot/simpleiot@v0.18.3/client/network-manager_nonlinux.go (about) 1 //go:build darwin || windows 2 // +build darwin windows 3 4 package client 5 6 import ( 7 "fmt" 8 9 "github.com/nats-io/nats.go" 10 "github.com/simpleiot/simpleiot/data" 11 ) 12 13 // NetworkManagerClient is a SimpleIoT client that manages network interfaces 14 // and their connections using NetworkManager via DBus 15 type NetworkManagerClient struct { 16 } 17 18 // NetworkManager client configuration 19 type NetworkManager struct { 20 } 21 22 // NewNetworkManagerClient returns a new NetworkManagerClient using its 23 // configuration read from the Client Manager 24 func NewNetworkManagerClient(nc *nats.Conn, config NetworkManager) Client { 25 // TODO: Ensure only one NetworkManager client exists 26 return &NetworkManagerClient{} 27 } 28 29 // Run starts the NetworkManager Client 30 func (c *NetworkManagerClient) Run() error { 31 return fmt.Errorf("Error: Network manager not supported on this platform.") 32 } 33 34 // Stop stops the NetworkManager Client 35 func (c *NetworkManagerClient) Stop(error) { 36 } 37 38 // Points is called when the client's node points are updated 39 func (c *NetworkManagerClient) Points(_ string, _ []data.Point) { 40 } 41 42 // EdgePoints is called when the client's node edge points are updated 43 func (c *NetworkManagerClient) EdgePoints( 44 _ string, _ string, _ []data.Point, 45 ) { 46 }