mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 00:03:47 +00:00
client/tailscale: add deprecation notice to the internal ts API client
Updates tailscale/tailscale#14596 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
77017bae59
commit
3d3c676f1f
@ -36,6 +36,7 @@ const maxReadSize = 10 << 20
|
|||||||
//
|
//
|
||||||
// Use NewClient to instantiate one. Exported fields should be set before
|
// Use NewClient to instantiate one. Exported fields should be set before
|
||||||
// the client is used and not changed thereafter.
|
// the client is used and not changed thereafter.
|
||||||
|
// Deprecated: use https://github.com/tailscale/tailscale-client-go instead.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
// tailnet is the globally unique identifier for a Tailscale network, such
|
// tailnet is the globally unique identifier for a Tailscale network, such
|
||||||
// as "example.com" or "user@gmail.com".
|
// 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.
|
// If httpClient is nil, then http.DefaultClient is used.
|
||||||
// "api.tailscale.com" is set as the BaseURL for the returned client
|
// "api.tailscale.com" is set as the BaseURL for the returned client
|
||||||
// and can be changed manually by the user.
|
// 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 {
|
func NewClient(tailnet string, auth AuthMethod) *Client {
|
||||||
return &Client{
|
return &Client{
|
||||||
tailnet: tailnet,
|
tailnet: tailnet,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user