You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: generic.go
    path of file: ./repos/gardener/pkg/client/seedmanagement/informers/externalversions
    
    the code of the file until where you have to start completion: // SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.
    
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
	switch resource {
	// Group=seedmanagement.gardener.cloud, Version=v1alpha1
	case v1alpha1.SchemeGroupVersion.WithResource("managedseeds"):
		return &genericInformer{resource: resource.GroupResource(), informer: f.Seedmanagement().V1alpha1().ManagedSeeds().Informer()}, nil
	case v1alpha1.SchemeGroupVersion.WithResource("managedseedsets"):
		return &genericInformer{resource: resource.GroupResource(), informer: f.Seedmanagement().V1alpha1().ManagedSeedSets().Informer()}, nil

	}

	return nil, fmt.Errorf("no informer found for %v", resource)
}