MCPcopy
hub / github.com/kubernetes/client-go / GetAuthProvider

Function GetAuthProvider

rest/plugin.go:65–73  ·  view source on GitHub ↗
(clusterAddress string, apc *clientcmdapi.AuthProviderConfig, persister AuthProviderConfigPersister)

Source from the content-addressed store, hash-verified

63}
64
65func GetAuthProvider(clusterAddress string, apc *clientcmdapi.AuthProviderConfig, persister AuthProviderConfigPersister) (AuthProvider, error) {
66 pluginsLock.Lock()
67 defer pluginsLock.Unlock()
68 p, ok := plugins[apc.Name]
69 if !ok {
70 return nil, fmt.Errorf("No Auth Provider found for name %q", apc.Name)
71 }
72 return p(clusterAddress, apc.Config, persister)
73}

Callers 2

TestAuthPluginPersistFunction · 0.85
TransportConfigMethod · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by 1

TestAuthPluginPersistFunction · 0.68