1
0
Fork 0

Labels parser.

This commit is contained in:
Ludovic Fernandez 2018-12-04 14:24:04 +01:00 committed by Traefiker Bot
parent 92f8e5cd3f
commit 11a0078966
16 changed files with 4462 additions and 4 deletions

View file

@ -21,8 +21,8 @@ type Router struct {
// LoadBalancerService holds the LoadBalancerService configuration.
type LoadBalancerService struct {
Stickiness *Stickiness `json:"stickiness,omitempty" toml:",omitempty"`
Servers []Server `json:"servers,omitempty" toml:",omitempty"`
Stickiness *Stickiness `json:"stickiness,omitempty" toml:",omitempty" label:"allowEmpty"`
Servers []Server `json:"servers,omitempty" toml:",omitempty" label-slice-as-struct:"server"`
Method string `json:"method,omitempty" toml:",omitempty"`
HealthCheck *HealthCheck `json:"healthCheck,omitempty" toml:",omitempty"`
PassHostHeader bool `json:"passHostHeader" toml:",omitempty"`
@ -151,7 +151,7 @@ type Configuration struct {
Routers map[string]*Router `json:"routers,omitempty" toml:",omitempty"`
Middlewares map[string]*Middleware `json:"middlewares,omitempty" toml:",omitempty"`
Services map[string]*Service `json:"services,omitempty" toml:",omitempty"`
TLS []*traefiktls.Configuration `json:"-"`
TLS []*traefiktls.Configuration `json:"-" label:"-"`
}
// Service holds a service configuration (can only be of one type at the same time).