diff --git a/cmd/dockerd/config_experimental.go b/cmd/dockerd/config_experimental.go deleted file mode 100644 index 355a29e859dc5dc927510a24eed511e7b2e88a11..0000000000000000000000000000000000000000 --- a/cmd/dockerd/config_experimental.go +++ /dev/null @@ -1,9 +0,0 @@ -package main - -import ( - "github.com/docker/docker/daemon/config" - "github.com/spf13/pflag" -) - -func attachExperimentalFlags(conf *config.Config, cmd *pflag.FlagSet) { -} diff --git a/cmd/dockerd/config_solaris.go b/cmd/dockerd/config_solaris.go deleted file mode 100644 index ed67064906278c6164ebb4314d492464f9648258..0000000000000000000000000000000000000000 --- a/cmd/dockerd/config_solaris.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import ( - "github.com/docker/docker/daemon/config" - "github.com/spf13/pflag" -) - -// installConfigFlags adds flags to the pflag.FlagSet to configure the daemon -func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) { - // First handle install flags which are consistent cross-platform - installCommonConfigFlags(conf, flags) - - // Then install flags common to unix platforms - installUnixConfigFlags(conf, flags) - - attachExperimentalFlags(conf, flags) -} diff --git a/cmd/dockerd/config_unix.go b/cmd/dockerd/config_unix.go index b3bd741c950d1314cb6789445da6dd2ada340af7..a3b0e36a0851baa293a6c7c21c4b3693be9ea6c6 100644 --- a/cmd/dockerd/config_unix.go +++ b/cmd/dockerd/config_unix.go @@ -44,6 +44,4 @@ func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) { flags.Var(&conf.ShmSize, "default-shm-size", "Default shm size for containers") flags.BoolVar(&conf.NoNewPrivileges, "no-new-privileges", false, "Set no-new-privileges by default for new containers") flags.StringVar(&conf.IpcMode, "default-ipc-mode", config.DefaultIpcMode, `Default mode for containers ipc ("shareable" | "private")`) - - attachExperimentalFlags(conf, flags) } diff --git a/cmd/dockerd/daemon_linux.go b/cmd/dockerd/daemon_linux.go index b58f0f08a3cb8a99c11ddeef8e1e82ef136b0021..b09fed929305fadd1fd2b5d7441029b408b4e7a0 100644 --- a/cmd/dockerd/daemon_linux.go +++ b/cmd/dockerd/daemon_linux.go @@ -1,5 +1,3 @@ -// +build linux - package main import systemdDaemon "github.com/coreos/go-systemd/daemon" diff --git a/container/container_windows.go b/container/container_windows.go index 5cb2e456c94419361d7dbb10551930129be75e94..92b50a6eb6490ae9ebdc1775ad2716a3ca629ed3 100644 --- a/container/container_windows.go +++ b/container/container_windows.go @@ -1,5 +1,3 @@ -// +build windows - package container import ( diff --git a/container/state_solaris.go b/container/state_solaris.go deleted file mode 100644 index 1229650efa765e6be27ba881b0b9f1c4038f2f20..0000000000000000000000000000000000000000 --- a/container/state_solaris.go +++ /dev/null @@ -1,7 +0,0 @@ -package container - -// setFromExitStatus is a platform specific helper function to set the state -// based on the ExitStatus structure. -func (s *State) setFromExitStatus(exitStatus *ExitStatus) { - s.ExitCodeValue = exitStatus.ExitCode -} diff --git a/daemon/archive_tarcopyoptions_windows.go b/daemon/archive_tarcopyoptions_windows.go index 535efd222e72ab18521fd9589d6ac35083608897..500e1285df1308896853cdb3be72379818463494 100644 --- a/daemon/archive_tarcopyoptions_windows.go +++ b/daemon/archive_tarcopyoptions_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/daemon/cluster/listen_addr_linux.go b/daemon/cluster/listen_addr_linux.go index 3d4f239bdacc43c5b8d5f5c0d297259ea9116f18..2f342fd605edd84939fa9f0f2ec66b9b9935c87f 100644 --- a/daemon/cluster/listen_addr_linux.go +++ b/daemon/cluster/listen_addr_linux.go @@ -1,5 +1,3 @@ -// +build linux - package cluster import ( diff --git a/daemon/cluster/listen_addr_solaris.go b/daemon/cluster/listen_addr_solaris.go deleted file mode 100644 index 57a894b251a0bb27c8a423972ca2894cbf5fd97b..0000000000000000000000000000000000000000 --- a/daemon/cluster/listen_addr_solaris.go +++ /dev/null @@ -1,57 +0,0 @@ -package cluster - -import ( - "bufio" - "fmt" - "net" - "os/exec" - "strings" -) - -func (c *Cluster) resolveSystemAddr() (net.IP, error) { - defRouteCmd := "/usr/sbin/ipadm show-addr -p -o addr " + - "`/usr/sbin/route get default | /usr/bin/grep interface | " + - "/usr/bin/awk '{print $2}'`" - out, err := exec.Command("/usr/bin/bash", "-c", defRouteCmd).Output() - if err != nil { - return nil, fmt.Errorf("cannot get default route: %v", err) - } - - defInterface := strings.SplitN(string(out), "/", 2) - defInterfaceIP := net.ParseIP(defInterface[0]) - - return defInterfaceIP, nil -} - -func listSystemIPs() []net.IP { - var systemAddrs []net.IP - cmd := exec.Command("/usr/sbin/ipadm", "show-addr", "-p", "-o", "addr") - cmdReader, err := cmd.StdoutPipe() - if err != nil { - return nil - } - - if err := cmd.Start(); err != nil { - return nil - } - - scanner := bufio.NewScanner(cmdReader) - go func() { - for scanner.Scan() { - text := scanner.Text() - nameAddrPair := strings.SplitN(text, "/", 2) - // Let go of loopback interfaces and docker interfaces - systemAddrs = append(systemAddrs, net.ParseIP(nameAddrPair[0])) - } - }() - - if err := scanner.Err(); err != nil { - fmt.Printf("scan underwent err: %+v\n", err) - } - - if err := cmd.Wait(); err != nil { - fmt.Printf("run command wait: %+v\n", err) - } - - return systemAddrs -} diff --git a/daemon/config/config_solaris.go b/daemon/config/config_solaris.go deleted file mode 100644 index 6b1e061b581f9937bea9f42d7922fc9d49ed1b32..0000000000000000000000000000000000000000 --- a/daemon/config/config_solaris.go +++ /dev/null @@ -1,30 +0,0 @@ -package config - -// Config defines the configuration of a docker daemon. -// These are the configuration settings that you pass -// to the docker daemon when you launch it with say: `docker -d -e lxc` -type Config struct { - CommonConfig - - // These fields are common to all unix platforms. - CommonUnixConfig -} - -// BridgeConfig stores all the bridge driver specific -// configuration. -type BridgeConfig struct { - commonBridgeConfig - - // Fields below here are platform specific. - commonUnixBridgeConfig -} - -// IsSwarmCompatible defines if swarm mode can be enabled in this config -func (conf *Config) IsSwarmCompatible() error { - return nil -} - -// ValidatePlatformConfig checks if any platform-specific configuration settings are invalid. -func (conf *Config) ValidatePlatformConfig() error { - return nil -} diff --git a/daemon/configs_linux.go b/daemon/configs_linux.go index af20ad78bd6130d286201c038920ab4f17b75ac9..d498c951e3670d9ebe3b58f08b72052bad4ccbcc 100644 --- a/daemon/configs_linux.go +++ b/daemon/configs_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon func configsSupported() bool { diff --git a/daemon/configs_windows.go b/daemon/configs_windows.go index 7cb2e9c438842b5b01cd86897102421282ab8a0e..d498c951e3670d9ebe3b58f08b72052bad4ccbcc 100644 --- a/daemon/configs_windows.go +++ b/daemon/configs_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon func configsSupported() bool { diff --git a/daemon/container_windows.go b/daemon/container_windows.go index 6fdd1e678e7f0845d5705d0881b467ecf8768350..6db130ab05f3fd98c8043f825c1b93bdb296726b 100644 --- a/daemon/container_windows.go +++ b/daemon/container_windows.go @@ -1,5 +1,3 @@ -//+build windows - package daemon import ( diff --git a/daemon/daemon_experimental.go b/daemon/daemon_experimental.go deleted file mode 100644 index fb0251d4afd65a04b1f18204e1cde94523218927..0000000000000000000000000000000000000000 --- a/daemon/daemon_experimental.go +++ /dev/null @@ -1,7 +0,0 @@ -package daemon - -import "github.com/docker/docker/api/types/container" - -func (daemon *Daemon) verifyExperimentalContainerSettings(hostConfig *container.HostConfig, config *container.Config) ([]string, error) { - return nil, nil -} diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index 1f9885d1764ba11498a532cb9402bed64aeef830..51ea7c774fee60c32ef37be59338d440f6e2100e 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -574,11 +574,6 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes. var warnings []string sysInfo := sysinfo.New(true) - warnings, err := daemon.verifyExperimentalContainerSettings(hostConfig, config) - if err != nil { - return warnings, err - } - w, err := verifyContainerResources(&hostConfig.Resources, sysInfo, update) // no matter err is nil or not, w could have data in itself. diff --git a/daemon/exec_solaris.go b/daemon/exec_solaris.go deleted file mode 100644 index 7c1fc20a0c2e63ee70045fe8eab683f9661b289c..0000000000000000000000000000000000000000 --- a/daemon/exec_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/container" - "github.com/docker/docker/daemon/exec" - specs "github.com/opencontainers/runtime-spec/specs-go" -) - -func (daemon *Daemon) execSetPlatformOpt(_ *container.Container, _ *exec.Config, _ *specs.Process) error { - return nil -} diff --git a/daemon/graphdriver/driver_linux.go b/daemon/graphdriver/driver_linux.go index f59862db857220cc3d408ac3c361e4d8f5e8d821..d2d7c9f64c181eec5fb4507c4496bbcd3df077e2 100644 --- a/daemon/graphdriver/driver_linux.go +++ b/daemon/graphdriver/driver_linux.go @@ -1,5 +1,3 @@ -// +build linux - package graphdriver import ( diff --git a/daemon/graphdriver/vfs/copy_linux.go b/daemon/graphdriver/vfs/copy_linux.go index a632d353e38853297b7093166434c9f76103298a..1a63a11807765071f4df8767a4bc2c79f5436fa0 100644 --- a/daemon/graphdriver/vfs/copy_linux.go +++ b/daemon/graphdriver/vfs/copy_linux.go @@ -1,5 +1,3 @@ -// +build linux - package vfs import "github.com/docker/docker/daemon/graphdriver/copy" diff --git a/daemon/graphdriver/vfs/quota_linux.go b/daemon/graphdriver/vfs/quota_linux.go index 032c15b9efe772a3578806f58a0a27631c812421..d40d0d13e9a57ac827e9ae6e814830a6cc654ea6 100644 --- a/daemon/graphdriver/vfs/quota_linux.go +++ b/daemon/graphdriver/vfs/quota_linux.go @@ -1,5 +1,3 @@ -// +build linux - package vfs import "github.com/docker/docker/daemon/graphdriver/quota" diff --git a/daemon/initlayer/setup_windows.go b/daemon/initlayer/setup_windows.go index b47563ebf6fcbfc69636e6a95789f3ddabcba4d2..ff78a4d0b0567c4debc201120d0b47d85ca86111 100644 --- a/daemon/initlayer/setup_windows.go +++ b/daemon/initlayer/setup_windows.go @@ -1,5 +1,3 @@ -// +build windows - package initlayer import ( diff --git a/daemon/inspect_unix.go b/daemon/inspect_linux.go similarity index 99% rename from daemon/inspect_unix.go rename to daemon/inspect_linux.go index f073695e33025bfc1686915f7e840dc5742768c2..8d334dcf9000d6ce633490c1f2596da49f290576 100644 --- a/daemon/inspect_unix.go +++ b/daemon/inspect_linux.go @@ -1,5 +1,3 @@ -// +build !windows - package daemon import ( diff --git a/daemon/inspect_solaris.go b/daemon/inspect_solaris.go deleted file mode 100644 index 0b275c1418ecdc4f7992531e74844f7fe765e8a1..0000000000000000000000000000000000000000 --- a/daemon/inspect_solaris.go +++ /dev/null @@ -1,27 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/backend" - "github.com/docker/docker/api/types/versions/v1p19" - "github.com/docker/docker/container" - "github.com/docker/docker/daemon/exec" -) - -// This sets platform-specific fields -func setPlatformSpecificContainerFields(container *container.Container, contJSONBase *types.ContainerJSONBase) *types.ContainerJSONBase { - return contJSONBase -} - -// containerInspectPre120 get containers for pre 1.20 APIs. -func (daemon *Daemon) containerInspectPre120(name string) (*v1p19.ContainerJSON, error) { - return &v1p19.ContainerJSON{}, nil -} - -func inspectExecProcessConfig(e *exec.Config) *backend.ExecProcessConfig { - return &backend.ExecProcessConfig{ - Tty: e.Tty, - Entrypoint: e.Entrypoint, - Arguments: e.Args, - } -} diff --git a/daemon/listeners/listeners_unix.go b/daemon/listeners/listeners_linux.go similarity index 99% rename from daemon/listeners/listeners_unix.go rename to daemon/listeners/listeners_linux.go index 3a7c0f85b0ef74271cb7761a89f7f356b2776267..7e0aaa237f63c70f0f2f4cdc07c45c177e97886f 100644 --- a/daemon/listeners/listeners_unix.go +++ b/daemon/listeners/listeners_linux.go @@ -1,5 +1,3 @@ -// +build !windows - package listeners import ( diff --git a/daemon/listeners/listeners_solaris.go b/daemon/listeners/listeners_solaris.go deleted file mode 100644 index ee1bd0fccf8bbb7f18373213b7553a91cc33cc14..0000000000000000000000000000000000000000 --- a/daemon/listeners/listeners_solaris.go +++ /dev/null @@ -1,43 +0,0 @@ -package listeners - -import ( - "crypto/tls" - "fmt" - "net" - "os" - - "github.com/docker/go-connections/sockets" - "github.com/sirupsen/logrus" -) - -// Init creates new listeners for the server. -func Init(proto, addr, socketGroup string, tlsConfig *tls.Config) (ls []net.Listener, err error) { - switch proto { - case "tcp": - l, err := sockets.NewTCPSocket(addr, tlsConfig) - if err != nil { - return nil, err - } - ls = append(ls, l) - case "unix": - gid, err := lookupGID(socketGroup) - if err != nil { - if socketGroup != "" { - if socketGroup != defaultSocketGroup { - return nil, err - } - logrus.Warnf("could not change group %s to %s: %v", addr, defaultSocketGroup, err) - } - gid = os.Getgid() - } - l, err := sockets.NewUnixSocket(addr, gid) - if err != nil { - return nil, fmt.Errorf("can't create unix socket %s: %v", addr, err) - } - ls = append(ls, l) - default: - return nil, fmt.Errorf("Invalid protocol format: %q", proto) - } - - return -} diff --git a/daemon/logger/gcplogs/gcplogging_linux.go b/daemon/logger/gcplogs/gcplogging_linux.go index 8917bdd4c7ec6af145e64f6ea09777fcaa64d9de..41a09362f29cef7c94ed4b48ae0d33069e5474d9 100644 --- a/daemon/logger/gcplogs/gcplogging_linux.go +++ b/daemon/logger/gcplogs/gcplogging_linux.go @@ -1,5 +1,3 @@ -// +build linux - package gcplogs import ( diff --git a/daemon/monitor_solaris.go b/daemon/monitor_solaris.go deleted file mode 100644 index 09957580006d79bfe9494e5d0fc3e9ac6f9ba532..0000000000000000000000000000000000000000 --- a/daemon/monitor_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/container" - "github.com/docker/docker/libcontainerd" -) - -// postRunProcessing perfoms any processing needed on the container after it has stopped. -func (daemon *Daemon) postRunProcessing(_ *container.Container, _ libcontainerd.EventInfo) error { - return nil -} diff --git a/daemon/secrets_linux.go b/daemon/secrets_linux.go index fca4e12598334af48844755212c6559b97936377..6ae0117b7358f6264448eaa1bca494a1a399d292 100644 --- a/daemon/secrets_linux.go +++ b/daemon/secrets_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon func secretsSupported() bool { diff --git a/daemon/secrets_windows.go b/daemon/secrets_windows.go index 9054354c8db5841e8b73fbd1b78c4e1247ca110d..6ae0117b7358f6264448eaa1bca494a1a399d292 100644 --- a/daemon/secrets_windows.go +++ b/daemon/secrets_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon func secretsSupported() bool { diff --git a/daemon/selinux_linux.go b/daemon/selinux_linux.go index fb2578bf4d034b553317b5e0e568cd4810d82566..46da7f13706ea4a6dcc04332138eaaa8bfaa0729 100644 --- a/daemon/selinux_linux.go +++ b/daemon/selinux_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon import "github.com/opencontainers/selinux/go-selinux" diff --git a/daemon/stats/collector_windows.go b/daemon/stats/collector_windows.go index 5fb27ced66ae1965576a39085ae06dd4035bbe3e..03109fd8fc1489bce51e36596edc64c13952fe68 100644 --- a/daemon/stats/collector_windows.go +++ b/daemon/stats/collector_windows.go @@ -1,5 +1,3 @@ -// +build windows - package stats // platformNewStatsCollector performs platform specific initialisation of the diff --git a/daemon/update_linux.go b/daemon/update_linux.go index 41d3b5324abb7be1b18a2e1fdb7197b7de75974e..966d74e350dc051603776fb73c4ffbf3cc02d875 100644 --- a/daemon/update_linux.go +++ b/daemon/update_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon import ( diff --git a/daemon/update_solaris.go b/daemon/update_solaris.go deleted file mode 100644 index f3b545c5f01ef3d53718fd5ee2a79de6da818791..0000000000000000000000000000000000000000 --- a/daemon/update_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/libcontainerd" -) - -func toContainerdResources(resources container.Resources) libcontainerd.Resources { - var r libcontainerd.Resources - return r -} diff --git a/daemon/update_windows.go b/daemon/update_windows.go index 4f85f41ddae4bddbdd5ca74c0736d69ceafa916b..e60f63d92d6982982e42ee05ad49adb1b3fd9983 100644 --- a/daemon/update_windows.go +++ b/daemon/update_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/daemon/volumes_windows.go b/daemon/volumes_windows.go index 62c9e23ac009ed30b417d1b393f78e2763a9abe1..bfb5133d3d40049d88e2aba1d7abfd72edf2d941 100644 --- a/daemon/volumes_windows.go +++ b/daemon/volumes_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/distribution/pull_v2_windows.go b/distribution/pull_v2_windows.go index b4573e1ecad327dfe798acde8ca54489b064a9f7..08ff4371cb4bbb181c4720cad77a4fbbef7e52d2 100644 --- a/distribution/pull_v2_windows.go +++ b/distribution/pull_v2_windows.go @@ -1,5 +1,3 @@ -// +build windows - package distribution import ( diff --git a/opts/hosts_windows.go b/opts/hosts_windows.go index 7c239e00f1e4ba20802364ef4247fece7506c5ce..684f0e128c25f4180cf80db16e73ee2d0d341528 100644 --- a/opts/hosts_windows.go +++ b/opts/hosts_windows.go @@ -1,5 +1,3 @@ -// +build windows - package opts // DefaultHost constant defines the default host string used by docker on Windows diff --git a/pkg/archive/archive_windows.go b/pkg/archive/archive_windows.go index a22410c0392163154603d858c14b4d179e6227fc..66243a64ab7da60daec4e3b9ba2f7b2b159fbd69 100644 --- a/pkg/archive/archive_windows.go +++ b/pkg/archive/archive_windows.go @@ -1,5 +1,3 @@ -// +build windows - package archive import ( diff --git a/pkg/directory/directory_windows.go b/pkg/directory/directory_windows.go index 6fb0917c4c7608f64786c111891aec4fbd9b8342..efe05cecef843415fe883c1d100776e5e06eabdc 100644 --- a/pkg/directory/directory_windows.go +++ b/pkg/directory/directory_windows.go @@ -1,5 +1,3 @@ -// +build windows - package directory import ( diff --git a/pkg/dmesg/dmesg_linux.go b/pkg/dmesg/dmesg_linux.go index 7df7f3d43641b8eb20bbcecaeb8014874c25726a..2fb494e1bf6ccbf3244bd5f02bcfa4cb6c88ed27 100644 --- a/pkg/dmesg/dmesg_linux.go +++ b/pkg/dmesg/dmesg_linux.go @@ -1,5 +1,3 @@ -// +build linux - package dmesg import ( diff --git a/pkg/fsutils/fsutils_linux.go b/pkg/fsutils/fsutils_linux.go index e6094b55b7172d51861530c9ba48c460389bdd07..75962594584111b35468351b4bc8c58659e62d1e 100644 --- a/pkg/fsutils/fsutils_linux.go +++ b/pkg/fsutils/fsutils_linux.go @@ -1,5 +1,3 @@ -// +build linux - package fsutils import ( diff --git a/pkg/homedir/homedir_linux.go b/pkg/homedir/homedir_linux.go index 012fe52a28f870fd44941a466bbe9393b4593432..a7cd2e103964be367bf03ac33f9ca242fd7978fd 100644 --- a/pkg/homedir/homedir_linux.go +++ b/pkg/homedir/homedir_linux.go @@ -1,5 +1,3 @@ -// +build linux - package homedir import ( diff --git a/pkg/idtools/idtools_windows.go b/pkg/idtools/idtools_windows.go index 94ca33afb11cf2a32c5394cc00a5aee7fb5039dd..ec491777029fb1bb35514e5db722ba07e5a97ea7 100644 --- a/pkg/idtools/idtools_windows.go +++ b/pkg/idtools/idtools_windows.go @@ -1,5 +1,3 @@ -// +build windows - package idtools import ( diff --git a/pkg/ioutils/temp_windows.go b/pkg/ioutils/temp_windows.go index c258e5fdd87882fa5f229b0c288a7ea84560a1aa..fb14c95489051ffb3b2462081b78d57081ec209b 100644 --- a/pkg/ioutils/temp_windows.go +++ b/pkg/ioutils/temp_windows.go @@ -1,5 +1,3 @@ -// +build windows - package ioutils import ( diff --git a/pkg/mount/mountinfo_linux.go b/pkg/mount/mountinfo_linux.go index be69fee1d7bbf0383ae1c1dd6564652e1cfaa818..dde889e7bf02ebc021528025eaca505c69e92981 100644 --- a/pkg/mount/mountinfo_linux.go +++ b/pkg/mount/mountinfo_linux.go @@ -1,5 +1,3 @@ -// +build linux - package mount import ( diff --git a/pkg/mount/sharedsubtree_linux.go b/pkg/mount/sharedsubtree_linux.go index 8ceec84bc6c8a53b686a4c0903124a7540901dce..f3c13e5a16ce895d6ccd449503003842b05055da 100644 --- a/pkg/mount/sharedsubtree_linux.go +++ b/pkg/mount/sharedsubtree_linux.go @@ -1,5 +1,3 @@ -// +build linux - package mount // MakeShared ensures a mounted filesystem has the SHARED mount option enabled. diff --git a/pkg/parsers/kernel/kernel_windows.go b/pkg/parsers/kernel/kernel_windows.go index e59867277676493cfd591dba2253a4a2a2a42c87..93620eeffce01e56733eb3f766c324db26744a02 100644 --- a/pkg/parsers/kernel/kernel_windows.go +++ b/pkg/parsers/kernel/kernel_windows.go @@ -1,5 +1,3 @@ -// +build windows - package kernel import ( diff --git a/pkg/reexec/command_linux.go b/pkg/reexec/command_linux.go index 05319eacc93d68621f02e3591590a4b710424fd8..d3f10615fc04fa311937b09ceb06491d830aa09b 100644 --- a/pkg/reexec/command_linux.go +++ b/pkg/reexec/command_linux.go @@ -1,5 +1,3 @@ -// +build linux - package reexec import ( diff --git a/pkg/reexec/command_windows.go b/pkg/reexec/command_windows.go index ca871c4227ede82a4df5d4dfb5aa519867b50580..c320876b79128b87378188f9cb301980d8b80e28 100644 --- a/pkg/reexec/command_windows.go +++ b/pkg/reexec/command_windows.go @@ -1,5 +1,3 @@ -// +build windows - package reexec import ( diff --git a/pkg/signal/signal_windows.go b/pkg/signal/signal_windows.go index 440f2700e2de32d322bbb4516259bad9230563e7..c84a63e82176b7322cc11f5a8beb92f0132c0716 100644 --- a/pkg/signal/signal_windows.go +++ b/pkg/signal/signal_windows.go @@ -1,5 +1,3 @@ -// +build windows - package signal import ( diff --git a/pkg/sysinfo/numcpu_linux.go b/pkg/sysinfo/numcpu_linux.go index f1d2d9db30b0289ddb602967ae19ad3b1ea96e5a..5739b33ac62adf3382345ddf294eb18baf3764f0 100644 --- a/pkg/sysinfo/numcpu_linux.go +++ b/pkg/sysinfo/numcpu_linux.go @@ -1,5 +1,3 @@ -// +build linux - package sysinfo import ( diff --git a/pkg/sysinfo/numcpu_windows.go b/pkg/sysinfo/numcpu_windows.go index 1d89dd550307f3963c1ce047b9f3ef8777a24c96..3516182ff2307a6d65c92611f26bac20d53c274e 100644 --- a/pkg/sysinfo/numcpu_windows.go +++ b/pkg/sysinfo/numcpu_windows.go @@ -1,5 +1,3 @@ -// +build windows - package sysinfo import ( diff --git a/pkg/sysinfo/sysinfo_windows.go b/pkg/sysinfo/sysinfo_windows.go index 4e6255bc59282fe025cb568a0fb848035d24f244..8889318c398a3336d5f3cea6fe291fcf158e0a9b 100644 --- a/pkg/sysinfo/sysinfo_windows.go +++ b/pkg/sysinfo/sysinfo_windows.go @@ -1,5 +1,3 @@ -// +build windows - package sysinfo // New returns an empty SysInfo for windows for now. diff --git a/pkg/system/chtimes_windows.go b/pkg/system/chtimes_windows.go index 45428c141ca932aa1abd94b4f8c232e5f85c738c..a1f4fd53bc88b5919f1d1000b86cf8d86a69028b 100644 --- a/pkg/system/chtimes_windows.go +++ b/pkg/system/chtimes_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system import ( diff --git a/pkg/system/filesys_windows.go b/pkg/system/filesys_windows.go index a61b53d0ba350c57e93ca4b06539eff7b72b6b27..b1e46d9e857c9a9a0828913acaab0bfd17a18e0f 100644 --- a/pkg/system/filesys_windows.go +++ b/pkg/system/filesys_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system import ( diff --git a/pkg/system/mknod_windows.go b/pkg/system/mknod_windows.go index 2e863c0215b3276196d5990020cbeae6de1f631b..ba2692aedd850d721672d8c65b4277c81c912d50 100644 --- a/pkg/system/mknod_windows.go +++ b/pkg/system/mknod_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system // Mknod is not implemented on Windows. diff --git a/pkg/system/umask_windows.go b/pkg/system/umask_windows.go index 13f1de1769c79a608984504fde7896ffb819afd5..71fc0f1bad0328d2db9b967b29cb3aa78acab723 100644 --- a/pkg/system/umask_windows.go +++ b/pkg/system/umask_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system // Umask is not supported on the windows platform. diff --git a/pkg/term/term_windows.go b/pkg/term/term_windows.go index b6819b3426b41b82a0550e049e20fa25fa8001f9..284ac6301066fc3f506acc3a564080c12a9f1faa 100644 --- a/pkg/term/term_windows.go +++ b/pkg/term/term_windows.go @@ -1,5 +1,3 @@ -// +build windows - package term import ( diff --git a/plugin/backend_linux.go b/plugin/backend_linux.go index 28a6c18ab5315297d6fc1836855d3b9792316035..1f2830a8999183ee42b81fd3637d279ba5d17758 100644 --- a/plugin/backend_linux.go +++ b/plugin/backend_linux.go @@ -1,5 +1,3 @@ -// +build linux - package plugin import ( diff --git a/plugin/manager_linux.go b/plugin/manager_linux.go index eff21e1d05c7fce18f7f4c6e5eeba5b692776bf9..59066c1d79a83f86aa4cee052acabc4c61e6dfbc 100644 --- a/plugin/manager_linux.go +++ b/plugin/manager_linux.go @@ -1,5 +1,3 @@ -// +build linux - package plugin import ( diff --git a/plugin/manager_solaris.go b/plugin/manager_solaris.go deleted file mode 100644 index ac03d6e63938a0c042c7e53519b3f027e6fed1e6..0000000000000000000000000000000000000000 --- a/plugin/manager_solaris.go +++ /dev/null @@ -1,30 +0,0 @@ -package plugin - -import ( - "fmt" - - "github.com/docker/docker/plugin/v2" - specs "github.com/opencontainers/runtime-spec/specs-go" -) - -func (pm *Manager) enable(p *v2.Plugin, c *controller, force bool) error { - return fmt.Errorf("Not implemented") -} - -func (pm *Manager) initSpec(p *v2.Plugin) (*specs.Spec, error) { - return nil, fmt.Errorf("Not implemented") -} - -func (pm *Manager) disable(p *v2.Plugin, c *controller) error { - return fmt.Errorf("Not implemented") -} - -func (pm *Manager) restore(p *v2.Plugin) error { - return fmt.Errorf("Not implemented") -} - -// Shutdown plugins -func (pm *Manager) Shutdown() { -} - -func setupRoot(root string) error { return nil } diff --git a/plugin/manager_windows.go b/plugin/manager_windows.go index 56a7ee3ecea61be7a547a5658d6f3951caf9ec2d..ac03d6e63938a0c042c7e53519b3f027e6fed1e6 100644 --- a/plugin/manager_windows.go +++ b/plugin/manager_windows.go @@ -1,5 +1,3 @@ -// +build windows - package plugin import ( diff --git a/plugin/v2/plugin_linux.go b/plugin/v2/plugin_linux.go index be82363249f1bf20c840a762dcde40f3a8a4e5c5..9590df4f7d748f187216c98f3504b7125335c174 100644 --- a/plugin/v2/plugin_linux.go +++ b/plugin/v2/plugin_linux.go @@ -1,5 +1,3 @@ -// +build linux - package v2 import (