2019-07-10 07:26:04 +00:00
|
|
|
package dynamic
|
|
|
|
|
|
|
|
import (
|
2019-08-03 01:58:23 +00:00
|
|
|
"github.com/containous/traefik/v2/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
|
|
|
|
|
|
|
|
// Configuration is the root of the dynamic configuration
|
|
|
|
type Configuration struct {
|
|
|
|
HTTP *HTTPConfiguration `json:"http,omitempty" toml:"http,omitempty" yaml:"http,omitempty"`
|
|
|
|
TCP *TCPConfiguration `json:"tcp,omitempty" toml:"tcp,omitempty" yaml:"tcp,omitempty"`
|
2020-02-11 00:26:04 +00:00
|
|
|
UDP *UDPConfiguration `json:"udp,omitempty" toml:"udp,omitempty" yaml:"udp,omitempty"`
|
2019-07-10 07:26:04 +00:00
|
|
|
TLS *TLSConfiguration `json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// +k8s:deepcopy-gen=true
|
|
|
|
|
|
|
|
// TLSConfiguration contains all the configuration parameters of a TLS connection.
|
|
|
|
type TLSConfiguration struct {
|
2019-07-12 23:24:03 +00:00
|
|
|
Certificates []*tls.CertAndStores `json:"certificates,omitempty" toml:"certificates,omitempty" yaml:"certificates,omitempty" label:"-"`
|
2019-07-10 07:26:04 +00:00
|
|
|
Options map[string]tls.Options `json:"options,omitempty" toml:"options,omitempty" yaml:"options,omitempty"`
|
|
|
|
Stores map[string]tls.Store `json:"stores,omitempty" toml:"stores,omitempty" yaml:"stores,omitempty"`
|
|
|
|
}
|