github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libnetwork/netutils/utils_windows.go (about) 1 package netutils 2 3 import ( 4 "net" 5 6 "github.com/docker/docker/libnetwork/types" 7 ) 8 9 // ElectInterfaceAddresses looks for an interface on the OS with the specified name 10 // and returns returns all its IPv4 and IPv6 addresses in CIDR notation. 11 // If a failure in retrieving the addresses or no IPv4 address is found, an error is returned. 12 // If the interface does not exist, it chooses from a predefined 13 // list the first IPv4 address which does not conflict with other 14 // interfaces on the system. 15 func ElectInterfaceAddresses(name string) ([]*net.IPNet, []*net.IPNet, error) { 16 return nil, nil, types.NotImplementedErrorf("not supported on windows") 17 } 18 19 // FindAvailableNetwork returns a network from the passed list which does not 20 // overlap with existing interfaces in the system 21 22 // TODO : Use appropriate windows APIs to identify non-overlapping subnets 23 func FindAvailableNetwork(list []*net.IPNet) (*net.IPNet, error) { 24 return nil, nil 25 }