[PATCH] MINOR: server: adds slowstart parameter
Builds new models with added slowstart server parameter. >From 7638bf05e36f3ae890e4d023acbfeb60bee4b802 Mon Sep 17 00:00:00 2001 From: Stefan Scheglmann Date: Thu, 30 Apr 2020 13:05:49 +0200 Subject: [PATCH] MINOR: server: adds slowstart parameter Newly generated models, adding support for slowstart paramter in servers. Generated from updated haproxy-spec.yml from updated dataplaneapi-specification. --- server.go | 21 + 1 file changed, 21 insertions(+) diff --git a/server.go b/server.go index ae99d90..5fbd5c7 100644 --- a/server.go +++ b/server.go @@ -153,6 +153,10 @@ type Server struct { // Enum: [enabled disabled] SendProxyV2 string `json:"send-proxy-v2,omitempty"` + // slowstart + // Pattern: ^[1-9][0-9]*(us|ms|s|m|h|d)$ + Slowstart string `json:"slowstart,omitempty"` + // sni // Pattern: ^[^\s]+$ Sni string `json:"sni,omitempty"` @@ -277,6 +281,10 @@ func (m *Server) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSlowstart(formats); err != nil { + res = append(res, err) + } + if err := m.validateSni(formats); err != nil { res = append(res, err) } @@ -918,6 +926,19 @@ func (m *Server) validateSendProxyV2(formats strfmt.Registry) error { return nil } +func (m *Server) validateSlowstart(formats strfmt.Registry) error { + + if swag.IsZero(m.Slowstart) { // not required + return nil + } + + if err := validate.Pattern("slowstart", "body", string(m.Slowstart), `^[1-9][0-9]*(us|ms|s|m|h|d)$`); err != nil { + return err + } + + return nil +} + func (m *Server) validateSni(formats strfmt.Registry) error { if swag.IsZero(m.Sni) { // not required -- 2.20.1 (Apple Git-117) -- Kind regards, Stefan Scheglmann PAAS Developer E-mail scheglm...@strato.de Website www.strato.com STRATO AG | Pascalstraße 10 | 10587 Berlin | Germany The mandatory information can be found here https://www.strato-hosting.co.uk/imprint/
[PATCH] MINOR: server: adds slowstart parameter
Adds slowstart parameter to dataplaneapi-specification. These patches add slowstart to dataplaneapi-specification. Sry for duplicate, this replaces previous mail with one mail per patch and patch included. >From a02f7bef4ae6624eeaa916294e896c7af73b451a Mon Sep 17 00:00:00 2001 From: Stefan Scheglmann Date: Thu, 30 Apr 2020 12:51:42 +0200 Subject: [PATCH] MINOR: servers: adds slowstart parameter --- build/haproxy_spec.yaml | 3 +++ models/configuration.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/build/haproxy_spec.yaml b/build/haproxy_spec.yaml index ec84626..b5d2c8d 100644 --- a/build/haproxy_spec.yaml +++ b/build/haproxy_spec.yaml @@ -1050,6 +1050,9 @@ definitions: - enabled - disabled type: string +slowstart: + pattern: ^[1-9][0-9]*(us|ms|s|m|h|d)$ + type: string sni: pattern: ^[^\s]+$ type: string diff --git a/models/configuration.yaml b/models/configuration.yaml index 9e6c238..3fbaf8e 100644 --- a/models/configuration.yaml +++ b/models/configuration.yaml @@ -798,6 +798,9 @@ server: send-proxy-v2: type: string enum: [enabled, disabled] +slowstart: + type: string + pattern: '^[1-9][0-9]*(us|ms|s|m|h|d)$' sni: type: string pattern: '^[^\s]+$' -- 2.20.1 (Apple Git-117) -- Kind regards, Stefan Scheglmann PAAS Developer E-mail scheglm...@strato.de Website www.strato.com STRATO AG | Pascalstraße 10 | 10587 Berlin | Germany The mandatory information can be found here https://www.strato-hosting.co.uk/imprint/
[PATCH] MINOR: server: adds slowstart parameter
Add optional slowstart parameter to dataplaneapi-specification and build new models from it. There two followup patches pending, one on client-native and one on dataplaneapi, waiting for those to be merged. -- Kind regards, Stefan Scheglmann SWH Dev Phone + 49 30 88615 3358 Fax + 49 30 88615 3358 E-Mail scheglm...@strato.de Website www.strato.com STRATO AG | Pascalstraße 10 | 10587 Berlin | Germany Supervisory Board: René Obermann (Chairman) Management Board: Dr. Christian Böing (Chairman), Christoph Steffens, René Wienholtz Commercial register: Municipal court Berlin-Charlottenburg HRB 79450 0001-MINOR-server-adds-slowstart-parameter_models.patch Description: 0001-MINOR-server-adds-slowstart-parameter_models.patch 0001-MINOR-servers-adds-slowstart-parameter_specification.patch Description: 0001-MINOR-servers-adds-slowstart-parameter_specification.patch