2015-11-01 15:35:01 +00:00
|
|
|
package provider
|
|
|
|
|
2015-11-13 10:50:32 +00:00
|
|
|
import (
|
|
|
|
"github.com/docker/libkv/store"
|
|
|
|
"github.com/docker/libkv/store/boltdb"
|
|
|
|
"github.com/emilevauge/traefik/types"
|
|
|
|
)
|
2015-10-01 10:04:25 +00:00
|
|
|
|
2015-11-01 18:29:47 +00:00
|
|
|
// BoltDb holds configurations of the BoltDb provider.
|
2015-11-02 18:48:34 +00:00
|
|
|
type BoltDb struct {
|
2015-11-13 10:50:32 +00:00
|
|
|
Kv
|
2015-10-01 10:04:25 +00:00
|
|
|
}
|
|
|
|
|
2015-11-01 18:29:47 +00:00
|
|
|
// Provide allows the provider to provide configurations to traefik
|
|
|
|
// using the given configuration channel.
|
2015-11-02 18:48:34 +00:00
|
|
|
func (provider *BoltDb) Provide(configurationChan chan<- types.ConfigMessage) error {
|
2015-11-13 10:50:32 +00:00
|
|
|
provider.StoreType = store.BOLTDB
|
|
|
|
boltdb.Register()
|
|
|
|
return provider.provide(configurationChan)
|
2015-10-01 10:04:25 +00:00
|
|
|
}
|