dotcloud/docker

View on GitHub
libnetwork/network_unix.go

Summary

Maintainability
A
35 mins
Test Coverage
//go:build !windows

package libnetwork

import (
    "context"

    "github.com/docker/docker/libnetwork/ipams/defaultipam"
)

type platformNetwork struct{} //nolint:nolintlint,unused // only populated on windows

// Stub implementations for DNS related functions

func (n *Network) startResolver() {
}

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
}

func defaultIpamForNetworkType(networkType string) string {
    return defaultipam.DriverName
}