goharbor/harbor · error
adapter factory for %s not found
Error message
adapter factory for %s not found
What it means
Error "adapter factory for %s not found" thrown in goharbor/harbor.
Source
Thrown at src/pkg/reg/adapter/adapter.go:100
if _, exist := registry[t]; exist {
return fmt.Errorf("adapter factory for %s already exists", t)
}
registry[t] = factory
registryKeys = append(registryKeys, t)
sort.Strings(registryKeys)
adapterInfo := factory.AdapterPattern()
if adapterInfo != nil {
adapterInfoMap[t] = adapterInfo
}
return nil
}
// GetFactory gets the adapter factory by the specified name
func GetFactory(t string) (Factory, error) {
factory, exist := registry[t]
if !exist {
return nil, fmt.Errorf("adapter factory for %s not found", t)
}
return factory, nil
}
// ListRegisteredAdapterTypes lists the registered Adapter type
func ListRegisteredAdapterTypes() []string {
return registryKeys
}
// ListRegisteredAdapterInfos list the adapter infos
func ListRegisteredAdapterInfos() map[string]*model.AdapterPattern {
return adapterInfoMap
}
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/reg/adapter/adapter.go:100 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/d859be3a9570daf4.
Report an issue: GitHub.