Skip to content

Commit f8fe794

Browse files
clwluvwmjuraga
authored andcommitted
MAJOR: add set table api
set table api create or update a stick-table entry in the table. Signed-off-by: Seena Fallah <seenafallah@gmail.com>
1 parent fef4d89 commit f8fe794

10 files changed

Lines changed: 891 additions & 2 deletions

configure_data_plane.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler {
549549
api.StickTableGetStickTablesHandler = &handlers.GetStickTablesHandlerImpl{Client: client}
550550
api.StickTableGetStickTableHandler = &handlers.GetStickTableHandlerImpl{Client: client}
551551
api.StickTableGetStickTableEntriesHandler = &handlers.GetStickTableEntriesHandlerImpl{Client: client}
552+
api.StickTableSetStickTableEntriesHandler = &handlers.SetStickTableEntriesHandlerImpl{Client: client}
552553

553554
// setup ACL runtime handlers
554555
api.ACLRuntimeGetServicesHaproxyRuntimeAclsHandler = &handlers.GetACLSHandlerRuntimeImpl{Client: client}

embedded_spec.go

Lines changed: 271 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ require (
2222
github.com/go-openapi/validate v0.19.8
2323
github.com/google/renameio v1.0.1
2424
github.com/google/uuid v1.2.0
25-
github.com/haproxytech/client-native/v3 v3.1.0
26-
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220404145038-981dbb4d82b1
25+
github.com/haproxytech/client-native/v3 v3.1.1-0.20220531142457-f5af6afde540
26+
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220428133329-7d0ec01198d4
2727
github.com/hashicorp/consul/api v1.6.0
2828
github.com/hashicorp/hcl v1.0.0
2929
github.com/jessevdk/go-flags v1.4.0

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
176176
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
177177
github.com/haproxytech/client-native/v3 v3.1.0 h1:+67d0bER89X2nk5xQZE5JFJ7YbnFdRsqgZY34/ipBFQ=
178178
github.com/haproxytech/client-native/v3 v3.1.0/go.mod h1:iSJBClljkXNJN/V4BGlP8FTuN64Upmo+yUkXTWaYZmw=
179+
github.com/haproxytech/client-native/v3 v3.1.1-0.20220531142457-f5af6afde540 h1:sVnqCQiwEeHEYQSvv0AR7nXpBK33PPXrt877zHX4yiU=
180+
github.com/haproxytech/client-native/v3 v3.1.1-0.20220531142457-f5af6afde540/go.mod h1:ofpY1YZj9CdHiNDIbbr1a2BFFQmYv7ej88AuJF36NXc=
179181
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220404145038-981dbb4d82b1 h1:5+qwM4kKiL8GGn5tjur/pgXzV8cMfQUHp1SCRFZ1RpU=
180182
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220404145038-981dbb4d82b1/go.mod h1:pEuHx+aFhn0lIdvAg1OaawQfeRkpq1I8HzjtZN4/PLI=
183+
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220428133329-7d0ec01198d4 h1:aTSSDkGwoDwGv0hRfKsaWxVejDW8iROlPPBhboI3ONk=
184+
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220428133329-7d0ec01198d4/go.mod h1:pEuHx+aFhn0lIdvAg1OaawQfeRkpq1I8HzjtZN4/PLI=
181185
github.com/haproxytech/go-logger v1.0.1-0.20211022075555-178f1cdf4d84 h1:rSLHjJ4VGvMZcGAGQ9GaXuhvdswu1iLVXTThLX6OKN8=
182186
github.com/haproxytech/go-logger v1.0.1-0.20211022075555-178f1cdf4d84/go.mod h1:OekUd8HCb7ubxMplzHUPBTHNxZmddOWfOjWclZsqIeM=
183187
github.com/hashicorp/consul/api v1.6.0 h1:SZB2hQW8AcTOpfDmiVblQbijxzsRuiyy0JpHfabvHio=

0 commit comments

Comments
 (0)