2019-07-10 07:26:04 +00:00
|
|
|
package dynamic
|
|
|
|
|
|
|
|
import (
|
2023-02-03 14:24:05 +00:00
|
|
|
"github.com/traefik/traefik/v3/pkg/tls"
|
2019-07-10 07:26:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// +k8s:deepcopy-gen=true
|
|
|
|
|
|
|
|
// Message holds configuration information exchanged between parts of traefik.
|
|
|
|
type Message struct {
|
|
|
|
ProviderName string
|
|
|
|
Configuration *Configuration
|
|
|
|
}
|
|
|
|
|
|
|
|
// +k8s:deepcopy-gen=true
|
|
|
|
|
|
|
|
// Configurations is for currentConfigurations Map.
|
|
|
|
type Configurations map[string]*Configuration
|
|
|
|
|
|
|
|
// +k8s:deepcopy-gen=true
|
|
|
|
|
2020-05-11 10:06:07 +00:00
|
|
|
// Configuration is the root of the dynamic configuration.
|
2019-07-10 07:26:04 +00:00
|
|
|
type Configuration struct {
|
2020-12-03 14:52:05 +00:00
|
|
|
HTTP *HTTPConfiguration `json:"http,omitempty" toml:"http,omitempty" yaml:"http,omitempty" export:"true"`
|
|
|
|
TCP *TCPConfiguration `json:"tcp,omitempty" toml:"tcp,omitempty" yaml:"tcp,omitempty" export:"true"`
|
|
|
|
UDP *UDPConfiguration `json:"udp,omitempty" toml:"udp,omitempty" yaml:"udp,omitempty" export:"true"`
|
2024-01-16 09:32:05 +00:00
|
|
|
TLS *TLSConfiguration `json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" label:"-" export:"true"`
|
2019-07-10 07:26:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// +k8s:deepcopy-gen=true
|
|
|
|
|
|
|
|
// TLSConfiguration contains all the configuration parameters of a TLS connection.
|
|
|
|
type TLSConfiguration struct {
|
2020-12-03 14:52:05 +00:00
|
|
|
Certificates []*tls.CertAndStores `json:"certificates,omitempty" toml:"certificates,omitempty" yaml:"certificates,omitempty" label:"-" export:"true"`
|
|
|
|
Options map[string]tls.Options `json:"options,omitempty" toml:"options,omitempty" yaml:"options,omitempty" export:"true"`
|
|
|
|
Stores map[string]tls.Store `json:"stores,omitempty" toml:"stores,omitempty" yaml:"stores,omitempty" export:"true"`
|
2019-07-10 07:26:04 +00:00
|
|
|
}
|