github.com/csfrancis/docker@v1.8.0-rc2/runconfig/hostconfig_windows.go (about)

     1  package runconfig
     2  
     3  func (n NetworkMode) IsDefault() bool {
     4  	return n == "default"
     5  }
     6  
     7  func DefaultDaemonNetworkMode() NetworkMode {
     8  	return NetworkMode("default")
     9  }
    10  
    11  func (n NetworkMode) NetworkName() string {
    12  	if n.IsDefault() {
    13  		return "default"
    14  	}
    15  	return ""
    16  }