mirror of
https://github.com/mayflower/docker-ls.git
synced 2025-11-26 12:03:12 +03:00
Support authentification via basic auth.
This commit is contained in:
@@ -5,5 +5,8 @@ import (
|
||||
)
|
||||
|
||||
func createConnector(cfg *Config) connector.Connector {
|
||||
if cfg.basicAuth {
|
||||
return connector.NewBasicAuthConnector(cfg)
|
||||
}
|
||||
return connector.NewTokenAuthConnector(cfg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user