1
0
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:
Christian Speckner
2016-02-26 13:25:34 +01:00
parent 17a44c1a20
commit 1eae834b66
6 changed files with 93 additions and 16 deletions

View File

@@ -5,5 +5,8 @@ import (
)
func createConnector(cfg *Config) connector.Connector {
if cfg.basicAuth {
return connector.NewBasicAuthConnector(cfg)
}
return connector.NewTokenAuthConnector(cfg)
}