type AuthProvider … type Factory … type AuthProviderConfigPersister … type noopPersister … func (n *noopPersister) Persist(_ map[string]string) error { … } var pluginsLock … var plugins … func RegisterAuthProviderPlugin(name string, plugin Factory) error { … } func GetAuthProvider(clusterAddress string, apc *clientcmdapi.AuthProviderConfig, persister AuthProviderConfigPersister) (AuthProvider, error) { … }