mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c5e6a4b307
Signed-off-by: John Howard <jhoward@microsoft.com>
18 lines
284 B
Go
18 lines
284 B
Go
// +build !windows
|
|
|
|
package runconfig
|
|
|
|
func (n NetworkMode) IsDefault() bool {
|
|
return n == "default"
|
|
}
|
|
|
|
func DefaultDaemonNetworkMode() NetworkMode {
|
|
return NetworkMode("default")
|
|
}
|
|
|
|
func (n NetworkMode) NetworkName() string {
|
|
if n.IsDefault() {
|
|
return "default"
|
|
}
|
|
return ""
|
|
}
|