2021-08-23 13:14:53 +00:00
|
|
|
//go:build !windows
|
2016-09-19 22:48:06 +00:00
|
|
|
|
|
|
|
package libnetwork
|
|
|
|
|
2024-03-15 17:04:41 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/docker/docker/libnetwork/ipamapi"
|
|
|
|
)
|
|
|
|
|
|
|
|
type platformNetwork struct{} //nolint:nolintlint,unused // only populated on windows
|
2016-10-12 23:55:20 +00:00
|
|
|
|
2016-09-19 22:48:06 +00:00
|
|
|
// Stub implementations for DNS related functions
|
|
|
|
|
2023-07-21 22:38:57 +00:00
|
|
|
func (n *Network) startResolver() {
|
2016-09-19 22:48:06 +00:00
|
|
|
}
|
2016-10-12 23:55:20 +00:00
|
|
|
|
2024-03-15 17:04:41 +00:00
|
|
|
func addEpToResolver(
|
|
|
|
ctx context.Context,
|
|
|
|
netName, epName string,
|
|
|
|
config *containerConfig,
|
|
|
|
epIface *EndpointInterface,
|
|
|
|
resolvers []*Resolver,
|
|
|
|
) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func deleteEpFromResolver(epName string, epIface *EndpointInterface, resolvers []*Resolver) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-10-12 23:55:20 +00:00
|
|
|
func defaultIpamForNetworkType(networkType string) string {
|
|
|
|
return ipamapi.DefaultIPAM
|
|
|
|
}
|