Selaa lähdekoodia

Merge pull request #19027 from runcom/remove-getter

daemon: info: remove exported getter
Arnaud Porterie 9 vuotta sitten
vanhempi
commit
838e4c86e8
1 muutettua tiedostoa jossa 1 lisäystä ja 7 poistoa
  1. 1 7
      daemon/info.go

+ 1 - 7
daemon/info.go

@@ -142,17 +142,11 @@ func (daemon *Daemon) showPluginsInfo() types.PluginsInfo {
 		pluginsInfo.Network = append(pluginsInfo.Network, nd)
 		pluginsInfo.Network = append(pluginsInfo.Network, nd)
 	}
 	}
 
 
-	pluginsInfo.Authorization = daemon.GetAuthorizationPluginsList()
+	pluginsInfo.Authorization = daemon.configStore.AuthZPlugins
 
 
 	return pluginsInfo
 	return pluginsInfo
 }
 }
 
 
-// GetAuthorizationPluginsList returns the list of plugins drivers
-// registered for authorization.
-func (daemon *Daemon) GetAuthorizationPluginsList() []string {
-	return daemon.configStore.AuthZPlugins
-}
-
 // The uppercase and the lowercase are available for the proxy settings.
 // The uppercase and the lowercase are available for the proxy settings.
 // See the Go specification for details on these variables. https://golang.org/pkg/net/http/
 // See the Go specification for details on these variables. https://golang.org/pkg/net/http/
 func getProxyEnv(key string) string {
 func getProxyEnv(key string) string {