add --connector switch, validation

This commit is contained in:
Bradley Cicenas
2017-06-09 14:35:29 -03:00
parent eeac65da8c
commit d372043a17
5 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ type Docker struct {
lock sync.RWMutex
}
func NewDocker() *Docker {
func NewDocker() Connector {
// init docker client
client, err := api.NewClientFromEnv()
if err != nil {