2015-11-01 16:35:01 +01:00
|
|
|
package provider
|
|
|
|
|
2015-11-13 11:50:32 +01:00
|
|
|
import (
|
2018-11-14 10:18:03 +01:00
|
|
|
"github.com/containous/traefik/config"
|
2016-04-13 20:36:23 +02:00
|
|
|
"github.com/containous/traefik/safe"
|
2015-11-13 11:50:32 +01:00
|
|
|
)
|
2015-11-01 16:35:01 +01:00
|
|
|
|
2015-11-01 19:29:47 +01:00
|
|
|
// Provider defines methods of a provider.
|
2015-11-01 16:35:01 +01:00
|
|
|
type Provider interface {
|
2015-11-01 19:29:47 +01:00
|
|
|
// Provide allows the provider to provide configurations to traefik
|
|
|
|
// using the given configuration channel.
|
2018-11-14 10:18:03 +01:00
|
|
|
Provide(configurationChan chan<- config.Message, pool *safe.Pool) error
|
2018-11-27 17:42:04 +01:00
|
|
|
Init() error
|
2015-11-01 16:35:01 +01:00
|
|
|
}
|