Skip to content

Commit e4665d9

Browse files
feat(lb): add support for SslBridging (#1422)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 3ab7e5c commit e4665d9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

api/lb/v1/lb_sdk.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,8 @@ type Backend struct {
10431043
UpdatedAt *time.Time `json:"updated_at"`
10441044

10451045
FailoverHost *string `json:"failover_host"`
1046+
1047+
SslBridging *bool `json:"ssl_bridging"`
10461048
}
10471049

10481050
func (m *Backend) UnmarshalJSON(b []byte) error {
@@ -2285,9 +2287,12 @@ type CreateBackendRequest struct {
22852287
ProxyProtocol ProxyProtocol `json:"proxy_protocol"`
22862288
// FailoverHost: scaleway S3 bucket website to be served in case all backend servers are down
22872289
//
2288-
// Only the host part of the Scaleway S3 bucket website is expected e.g. `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
2290+
// Only the host part of the Scaleway S3 bucket website is expected.
2291+
// E.g. `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
22892292
//
22902293
FailoverHost *string `json:"failover_host"`
2294+
// SslBridging: enable SSL between load balancer and backend servers
2295+
SslBridging *bool `json:"ssl_bridging"`
22912296
}
22922297

22932298
func (m *CreateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -2467,6 +2472,8 @@ type UpdateBackendRequest struct {
24672472
// Example: `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
24682473
//
24692474
FailoverHost *string `json:"failover_host"`
2475+
// SslBridging: enable SSL between load balancer and backend servers
2476+
SslBridging *bool `json:"ssl_bridging"`
24702477
}
24712478

24722479
func (m *UpdateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -5278,9 +5285,12 @@ type ZonedAPICreateBackendRequest struct {
52785285
ProxyProtocol ProxyProtocol `json:"proxy_protocol"`
52795286
// FailoverHost: scaleway S3 bucket website to be served in case all backend servers are down
52805287
//
5281-
// Only the host part of the Scaleway S3 bucket website is expected e.g. `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
5288+
// Only the host part of the Scaleway S3 bucket website is expected.
5289+
// E.g. `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
52825290
//
52835291
FailoverHost *string `json:"failover_host"`
5292+
// SslBridging: enable SSL between load balancer and backend servers
5293+
SslBridging *bool `json:"ssl_bridging"`
52845294
}
52855295

52865296
func (m *ZonedAPICreateBackendRequest) UnmarshalJSON(b []byte) error {
@@ -5460,6 +5470,8 @@ type ZonedAPIUpdateBackendRequest struct {
54605470
// Example: `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL is `https://failover-website.s3-website.fr-par.scw.cloud/`.
54615471
//
54625472
FailoverHost *string `json:"failover_host"`
5473+
// SslBridging: enable SSL between load balancer and backend servers
5474+
SslBridging *bool `json:"ssl_bridging"`
54635475
}
54645476

54655477
func (m *ZonedAPIUpdateBackendRequest) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)