mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 20:11:09 +00:00
Limit network namespace code to compile on Linux only
This commit is contained in:
12
probe/docker/network_others.go
Normal file
12
probe/docker/network_others.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// +build !linux
|
||||
|
||||
package docker
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
)
|
||||
|
||||
func namespaceIPAddresses(processID int) ([]*net.IPNet, error) {
|
||||
return nil, errors.New("namespaceIPAddresses not implemented on this platform")
|
||||
}
|
||||
Reference in New Issue
Block a user