Limit network namespace code to compile on Linux only

This commit is contained in:
Bryan Boreham
2018-06-04 10:54:02 +00:00
parent ade54ba84e
commit c6c51f36f7
2 changed files with 12 additions and 0 deletions

View 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")
}