diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-03-11 18:26:27 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-03-11 18:26:27 +0100 |
commit | 61599d0a4d61262e00142b9bc4d555350d70f7a5 (patch) | |
tree | 483b02b065e2e1f73dad812d43c92f5a14e2c397 /plugin | |
parent | a583434ebc5fb98bab6f693475e89e4d3a6703be (diff) |
plugin: remove unused pluginRegistryService
It wrapped the regular registry service, but the ResolveRepository() function
was not called anywhere.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/manager.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/plugin/manager.go b/plugin/manager.go index f126cd7a03..85423ce5d3 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -14,7 +14,6 @@ import ( "github.com/containerd/containerd/content" "github.com/containerd/containerd/content/local" - "github.com/docker/distribution/reference" "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/authorization" "github.com/docker/docker/pkg/containerfs" @@ -83,25 +82,8 @@ type controller struct { timeoutInSecs int } -// pluginRegistryService ensures that all resolved repositories -// are of the plugin class. -type pluginRegistryService struct { - registry.Service -} - -func (s pluginRegistryService) ResolveRepository(name reference.Named) (repoInfo *registry.RepositoryInfo, err error) { - repoInfo, err = s.Service.ResolveRepository(name) - if repoInfo != nil { - repoInfo.Class = "plugin" - } - return -} - // NewManager returns a new plugin manager. func NewManager(config ManagerConfig) (*Manager, error) { - if config.RegistryService != nil { - config.RegistryService = pluginRegistryService{config.RegistryService} - } manager := &Manager{ config: config, } |