summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIrbe Krumina <irbe@tailscale.com>2025-01-10 09:48:50 +0000
committerIrbe Krumina <irbe@tailscale.com>2025-01-10 09:48:53 +0000
commit3d3c676f1ff5b73943e5299d5c6b636a87e5fcbc (patch)
treea312cf1223d94c572befadb027fc94dd795975ad
parent77017bae59c2b89d80a2428524abd53042948e9c (diff)
downloadtailscale-irbekrm/lcdeprecated.tar.xz
tailscale-irbekrm/lcdeprecated.zip
client/tailscale: add deprecation notice to the internal ts API clientirbekrm/lcdeprecated
Updates tailscale/tailscale#14596 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
-rw-r--r--client/tailscale/tailscale.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/tailscale/tailscale.go b/client/tailscale/tailscale.go
index 8533b4712..29e9eae9c 100644
--- a/client/tailscale/tailscale.go
+++ b/client/tailscale/tailscale.go
@@ -36,6 +36,7 @@ const maxReadSize = 10 << 20
//
// Use NewClient to instantiate one. Exported fields should be set before
// the client is used and not changed thereafter.
+// Deprecated: use https://github.com/tailscale/tailscale-client-go instead.
type Client struct {
// tailnet is the globally unique identifier for a Tailscale network, such
// as "example.com" or "user@gmail.com".
@@ -98,6 +99,7 @@ func (c *Client) setAuth(r *http.Request) {
// If httpClient is nil, then http.DefaultClient is used.
// "api.tailscale.com" is set as the BaseURL for the returned client
// and can be changed manually by the user.
+// Deprecated: use https://github.com/tailscale/tailscale-client-go instead.
func NewClient(tailnet string, auth AuthMethod) *Client {
return &Client{
tailnet: tailnet,