mirror of
https://github.com/mayflower/docker-ls.git
synced 2025-11-26 12:03:12 +03:00
13 lines
255 B
Go
13 lines
255 B
Go
package lib
|
|
|
|
import (
|
|
"git.mayflower.de/vaillant-team/docker-ls/lib/connector"
|
|
)
|
|
|
|
func createConnector(cfg *Config) connector.Connector {
|
|
if cfg.basicAuth {
|
|
return connector.NewBasicAuthConnector(cfg)
|
|
}
|
|
return connector.NewTokenAuthConnector(cfg)
|
|
}
|