2015-11-01 16:35:01 +01:00
|
|
|
package provider
|
|
|
|
|
2015-11-13 11:50:32 +01:00
|
|
|
import (
|
2023-02-03 15:24:05 +01:00
|
|
|
"github.com/traefik/traefik/v3/pkg/config/dynamic"
|
|
|
|
"github.com/traefik/traefik/v3/pkg/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.
|
2019-07-10 09:26:04 +02:00
|
|
|
Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error
|
2018-11-27 17:42:04 +01:00
|
|
|
Init() error
|
2015-11-01 16:35:01 +01:00
|
|
|
}
|