0e91d2e0e9
Basically every exported method which takes a libnetwork.Sandbox argument asserts that the value's concrete type is *sandbox. Passing any other implementation of the interface is a runtime error! This interface is a footgun, and clearly not necessary. Export and use the concrete type instead. Signed-off-by: Cory Snider <csnider@mirantis.com>
38 lines
696 B
Go
38 lines
696 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/docker/libnetwork/etchosts"
|
|
)
|
|
|
|
// Stub implementations for DNS related functions
|
|
|
|
func (sb *Sandbox) startResolver(bool) {}
|
|
|
|
func (sb *Sandbox) setupResolutionFiles() error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) restorePath() {}
|
|
|
|
func (sb *Sandbox) updateHostsFile(ifaceIP []string) error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) addHostsEntries(recs []etchosts.Record) {}
|
|
|
|
func (sb *Sandbox) deleteHostsEntries(recs []etchosts.Record) {}
|
|
|
|
func (sb *Sandbox) updateDNS(ipv6Enabled bool) error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) setupDNS() error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) rebuildDNS() error {
|
|
return nil
|
|
}
|