add --connector switch, validation

This commit is contained in:
Bradley Cicenas
2017-06-09 17:35:29 +00:00
parent eeac65da8c
commit d372043a17
5 changed files with 28 additions and 8 deletions

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 {