tailscale/client/tailscale
Brad Fitzpatrick 4664318be2 client/tailscale: revert CreateKey API change, add Client.CreateKeyWithExpiry
The client/tailscale is a stable-ish API we try not to break. Revert
the Client.CreateKey method as it was and add a new
CreateKeyWithExpiry method to do the new thing. And document the
expiry field and enforce that the time.Duration can't be between in
range greater than 0 and less than a second.

Updates #7143
Updates #8124 (reverts it, effectively)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-05-12 21:05:12 -07:00
..
apitype tailcfg, localapi: plumb device token to server 2023-02-03 10:28:11 -08:00
example/servetls all: update copyright and license headers 2023-01-27 15:36:29 -08:00
acl.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
devices.go client/tailscale: add tags field to Device struct 2023-02-18 21:14:40 +00:00
dns.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
keys.go client/tailscale: revert CreateKey API change, add Client.CreateKeyWithExpiry 2023-05-12 21:05:12 -07:00
localclient.go client/tailscale: dial LocalAPI at 127.0.0.1 on macOS 2023-04-12 14:09:24 -07:00
localclient_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
required_version.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
routes.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tailnet.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tailscale.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00