Use of Viper and cobra

This commit is contained in:
emile
2016-01-13 22:46:44 +01:00
parent a0b15a0efd
commit 35070f7c1c
32 changed files with 414 additions and 143 deletions

View File

@@ -8,13 +8,13 @@ import (
// Etcd holds configurations of the Etcd provider.
type Etcd struct {
Kv
Kv `mapstructure:",squash"`
}
// Provide allows the provider to provide configurations to traefik
// using the given configuration channel.
func (provider *Etcd) Provide(configurationChan chan<- types.ConfigMessage) error {
provider.StoreType = store.ETCD
provider.storeType = store.ETCD
etcd.Register()
return provider.provide(configurationChan)
}