tailscale/ipn/ipnlocal
Brad Fitzpatrick 544d8d0ab8 ipn/ipnlocal: remove NewLocalBackendWithClientGen
This removes the NewLocalBackendWithClientGen constructor added in
b4d04a065f and instead adds
LocalBackend.SetControlClientGetterForTesting, mirroring
LocalBackend.SetHTTPTestClient. NewLocalBackendWithClientGen was
weird in being exported but taking an unexported type. This was noted
during code review:

https://github.com/tailscale/tailscale/pull/1818#discussion_r623155669

which ended in:

"I'll leave it for y'all to clean up if you find some way to do it elegantly."

This is more idiomatic.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-30 07:36:53 -07:00
..
local_test.go ipn: mock controlclient.Client; big ipn.Backend state machine test. 2021-04-30 00:09:35 -04:00
local.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 2021-04-30 07:36:53 -07:00
loglines_test.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 2021-04-13 10:12:14 -07:00
peerapi_macios_ext.go ipn/{ipnlocal,localapi}: add localapi handler to dial/proxy file PUTs 2021-04-06 21:31:50 -07:00
peerapi_test.go ipn/ipnlocal: use delete marker files to work around Windows delete problems 2021-04-26 10:59:25 -07:00
peerapi.go ipn/ipnlocal: always write files to partial files, even in buffered mode 2021-04-26 11:34:05 -07:00
state_test.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 2021-04-30 07:36:53 -07:00