tailscale / tailscale-client-go

A client implementation for the Tailscale HTTP API
MIT License
61 stars 27 forks source link

feat: Add support for a custom `http.Client` #79

Closed erezrokah closed 2 months ago

erezrokah commented 6 months ago

Thank you for this lovely project 👋

Would it be possible to add an option to configure the http.Client set in: https://github.com/tailscale/tailscale-client-go/blob/b40c082c85b730c5976bcf283ab99495673a667f/tailscale/client.go#L77

This is useful for implementing retries via https://github.com/hashicorp/go-retryablehttp

oxtoacart commented 2 months ago

This is now available in the in-progress V2 API.

erezrokah commented 2 months ago

Hi @oxtoacart 👋 Thanks for the update. When is v2 scheduled to be released?

oxtoacart commented 2 months ago

Hi @oxtoacart 👋 Thanks for the update. When is v2 scheduled to be released?

We don't have a firm date. The current pre-release is complete in terms of which APIs are covered, but we'll likely have a round of tweaking/cleanup before we release.