traefik/pkg/tls/tls.go

30 lines
724 B
Go
Raw Normal View History

package tls
const certificateHeader = "-----BEGIN CERTIFICATE-----\n"
2017-11-10 09:30:04 +00:00
// ClientCA defines traefik CA files for a entryPoint
// and it indicates if they are mandatory or have just to be analyzed if provided.
2017-11-10 09:30:04 +00:00
type ClientCA struct {
Files []FileOrContent
2017-11-10 09:30:04 +00:00
Optional bool
}
// Options configures TLS for an entry point
type Options struct {
MinVersion string `export:"true"`
CipherSuites []string
ClientCA ClientCA
SniStrict bool `export:"true"`
}
// Store holds the options for a given Store
type Store struct {
2018-07-06 08:30:03 +00:00
DefaultCertificate *Certificate
}
// CertAndStores allows mapping a TLS certificate to a list of entry points.
type CertAndStores struct {
Certificate `yaml:",inline"`
Stores []string
}