1
0
mirror of https://github.com/rancher/norman.git synced 2025-07-11 14:24:07 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Sverre Boschman
86ac83c8c7
Support setting proxy url in client opts (#453)
* Support setting proxy url in client opts

* Return more descriptive invalid proxy url error

* Return wrapped parse error
2024-04-16 15:06:57 -04:00
Jiaqi Luo
5d579d3486 bump Go to 1.19 and fix errores golangci-lint reports 2022-12-02 19:55:36 -07:00
Jordan JEAN
39e54730f9 Introduce proxy support 2020-01-07 17:40:07 +01:00
Yuki Nishiwaki
129bbd3ca3 Configure HandshakeTimeout in websocket.Dialer
To prevent agent from being hung in the middle of Websocket Session
Handshake, We'd better to set HandshakeTimeout

Related to https://github.com/rancher/rancher/issues/21117
2019-06-26 00:55:50 +09:00
^_^void
f49de2f44d
ensure resp.Body closed
In the old code, `resp` defined at line 215 will be rewrite at line 241. So that the `resp` after `defer` at both line 219 and 245 will operate the same one. And the other on leaks.
2019-03-27 20:34:04 +08:00
Darren Shepherd
093318714b Add ability to pass in WebSocket dialer 2018-07-31 14:10:23 -07:00
Darren Shepherd
19878010e4 Add Replace to generic client 2018-07-31 14:10:23 -07:00
Darren Shepherd
35d7571228 Improve client debug logging 2018-07-19 10:23:17 -07:00
Darren Shepherd
2706ddc350 Change default timeout to 1 minute 2018-07-19 10:23:17 -07:00
Darren Shepherd
413808be1d Make debug variable public 2018-07-19 10:23:17 -07:00
Darren Shepherd
fbc49a97af Make websocket dialer use same TLSClientConfig has http client 2018-07-19 10:23:17 -07:00
Darren Shepherd
da330debe9 Export NewAPIError and SetupRequest 2018-07-19 10:23:17 -07:00
Dan Ramich
9846d7349c Add interface for APIBaseClient
Problem:
There are three clients based off the APIBaseClient so three code paths
are needed to make the same type of call in each client

Solution:
Add an interface so any client that satisfies it can be used to make
these calls
2018-04-10 22:48:58 -07:00
Daishan Peng
a978cad0e8 add insecure flag, fix collection link, add yaml tags 2018-02-27 15:50:24 -07:00
Raul Sanchez
aa9c66a519 Feat: Added token suport to clientbase auth 2018-02-07 13:48:11 -08:00
Dan Ramich
d2d5892f3f Add option to pass in CAcert for verification
Problem:
Running a server with a self signed cert will cause tls errors

Solution:
Add abillity to pass in a cert file to use for tls verification
2018-01-31 20:57:39 +00:00
Darren Shepherd
38c9c5c6c3 Subcontext and mapping updates 2017-11-21 15:37:22 -07:00
Darren Shepherd
f9b15a5e39 Change ById to ByID 2017-11-10 22:33:03 -07:00
Darren Shepherd
c8cab3f4f8 More initial dev 2017-11-10 21:46:30 -07:00