diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index 91a0998ba4f0a5f42b521c50ecc6cde932632ffe..64815ce6947919ed76d971221848b8848678898e 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -101,6 +101,12 @@ func (p *Plugin) IsV1() bool { return true } +// ScopedPath returns the path scoped to the plugin's rootfs. +// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. +func (p *Plugin) ScopedPath(s string) string { + return s +} + // NewLocalPlugin creates a new local plugin. func NewLocalPlugin(name, addr string) *Plugin { return &Plugin{ diff --git a/pkg/plugins/plugins_unix.go b/pkg/plugins/plugins_unix.go deleted file mode 100644 index fb78cefb242e87647339e63771dcf27b9f770691..0000000000000000000000000000000000000000 --- a/pkg/plugins/plugins_unix.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build !windows - -package plugins // import "github.com/docker/docker/pkg/plugins" - -// ScopedPath returns the path scoped to the plugin's rootfs. -// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. -func (p *Plugin) ScopedPath(s string) string { - return s -} diff --git a/pkg/plugins/plugins_windows.go b/pkg/plugins/plugins_windows.go deleted file mode 100644 index ddf1d786c62ba10bb45a6ddf053ef0b0376827d2..0000000000000000000000000000000000000000 --- a/pkg/plugins/plugins_windows.go +++ /dev/null @@ -1,7 +0,0 @@ -package plugins // import "github.com/docker/docker/pkg/plugins" - -// ScopedPath returns the path scoped to the plugin's rootfs. -// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. -func (p *Plugin) ScopedPath(s string) string { - return s -}