summaryrefslogtreecommitdiff
path: root/pkg/plugins
diff options
context:
space:
mode:
authorAntonio Murdaca <runcom@redhat.com>2015-12-17 11:05:50 +0100
committerAntonio Murdaca <runcom@redhat.com>2015-12-17 11:05:50 +0100
commit1d2b62ceae17238f842bb2a7febf1bead8a982d5 (patch)
tree2717cb749450eb7ffc57b809e74143f7c52964dc /pkg/plugins
parent905f3336b2715b3960b5ff4f860db387797d9adf (diff)
downloaddocker-1d2b62ceae17238f842bb2a7febf1bead8a982d5.tar.gz
pkg: plugins: remove dead code
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Diffstat (limited to 'pkg/plugins')
-rw-r--r--pkg/plugins/discovery.go18
1 files changed, 5 insertions, 13 deletions
diff --git a/pkg/plugins/discovery.go b/pkg/plugins/discovery.go
index 7bd470db08..d0ee27485f 100644
--- a/pkg/plugins/discovery.go
+++ b/pkg/plugins/discovery.go
@@ -18,23 +18,15 @@ var (
specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"}
)
-// Registry defines behavior of a registry of plugins.
-type Registry interface {
- // Plugins lists all plugins.
- Plugins() ([]*Plugin, error)
- // Plugin returns the plugin registered with the given name (or returns an error).
- Plugin(name string) (*Plugin, error)
-}
-
-// LocalRegistry defines a registry that is local (using unix socket).
-type LocalRegistry struct{}
+// localRegistry defines a registry that is local (using unix socket).
+type localRegistry struct{}
-func newLocalRegistry() LocalRegistry {
- return LocalRegistry{}
+func newLocalRegistry() localRegistry {
+ return localRegistry{}
}
// Plugin returns the plugin registered with the given name (or returns an error).
-func (l *LocalRegistry) Plugin(name string) (*Plugin, error) {
+func (l *localRegistry) Plugin(name string) (*Plugin, error) {
socketpaths := pluginPaths(socketsPath, name, ".sock")
for _, p := range socketpaths {