2019-07-10 10:26:04 +03:00
package dynamic
import (
2020-09-16 16:46:04 +03:00
"github.com/traefik/traefik/v2/pkg/tls"
2019-07-10 10:26:04 +03: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 13:06:07 +03:00
// Configuration is the root of the dynamic configuration.
2019-07-10 10:26:04 +03:00
type Configuration struct {
2020-12-03 17:52:05 +03: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-02-26 12:02:06 +03:00
TLS * TLSConfiguration ` json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true" `
2019-07-10 10:26:04 +03:00
}
// +k8s:deepcopy-gen=true
// TLSConfiguration contains all the configuration parameters of a TLS connection.
type TLSConfiguration struct {
2020-12-03 17:52:05 +03:00
Certificates [ ] * tls . CertAndStores ` json:"certificates,omitempty" toml:"certificates,omitempty" yaml:"certificates,omitempty" label:"-" export:"true" `
2024-02-26 12:02:06 +03:00
Options map [ string ] tls . Options ` json:"options,omitempty" toml:"options,omitempty" yaml:"options,omitempty" label:"-" export:"true" `
2020-12-03 17:52:05 +03:00
Stores map [ string ] tls . Store ` json:"stores,omitempty" toml:"stores,omitempty" yaml:"stores,omitempty" export:"true" `
2019-07-10 10:26:04 +03:00
}