MCPcopy
hub / github.com/moby/moby / SetPlugins

Method SetPlugins

pkg/authorization/middleware.go:35–39  ·  view source on GitHub ↗

SetPlugins sets the plugin used for authorization

(names []string)

Source from the content-addressed store, hash-verified

33
34// SetPlugins sets the plugin used for authorization
35func (m *Middleware) SetPlugins(names []string) {
36 m.mu.Lock()
37 m.plugins = newPlugins(names)
38 m.mu.Unlock()
39}
40
41// RemovePlugin removes a single plugin from this authz middleware chain
42func (m *Middleware) RemovePlugin(name string) {

Callers 2

reloadConfigMethod · 0.80

Calls 3

newPluginsFunction · 0.85
UnlockMethod · 0.80
LockMethod · 0.45

Tested by 1