You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
local.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 3 years ago
local_test.go ipn: mock controlclient.Client; big ipn.Backend state machine test. 3 years ago
loglines_test.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 3 years ago
peerapi.go ipn/ipnlocal: always write files to partial files, even in buffered mode 3 years ago
peerapi_macios_ext.go ipn/{ipnlocal,localapi}: add localapi handler to dial/proxy file PUTs 3 years ago
peerapi_test.go ipn/ipnlocal: use delete marker files to work around Windows delete problems 3 years ago
state_test.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 3 years ago