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>
4 years ago
..
local.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 4 years ago
local_test.go ipn: mock controlclient.Client; big ipn.Backend state machine test. 4 years ago
loglines_test.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 4 years ago
peerapi.go ipn/ipnlocal: always write files to partial files, even in buffered mode 4 years ago
peerapi_macios_ext.go ipn/{ipnlocal,localapi}: add localapi handler to dial/proxy file PUTs 4 years ago
peerapi_test.go ipn/ipnlocal: use delete marker files to work around Windows delete problems 4 years ago
state_test.go ipn/ipnlocal: remove NewLocalBackendWithClientGen 4 years ago