Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/backend/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func Register(name string, factory ClientFactory) {
_factories[name] = factory
}

// getFactory returns backend client factory given client name.
func getFactory(name string) (ClientFactory, error) {
// GetFactory returns backend client factory given client name.
func GetFactory(name string) (ClientFactory, error) {
factory, ok := _factories[name]
if !ok {
return nil, fmt.Errorf("no backend client defined with name %s", name)
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewManager(managerConfig ManagerConfig, configs []Config, auth AuthConfig,
var backendConfig interface{}
for backendName, backendConfig = range config.Backend { // Pull the only key/value out of map
}
factory, err := getFactory(backendName)
factory, err := GetFactory(backendName)
if err != nil {
return nil, fmt.Errorf("get backend client factory: %s", err)
}
Expand Down