2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-02-05 22:16:58 +00:00
|
|
|
|
|
|
|
package logtail
|
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
import "tailscale.com/types/logid"
|
2020-02-05 22:16:58 +00:00
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
// Deprecated: Use "tailscale.com/types/logid".PrivateID instead.
|
|
|
|
type PrivateID = logid.PrivateID
|
2020-02-05 22:16:58 +00:00
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
// Deprecated: Use "tailscale.com/types/logid".NewPrivateID instead.
|
|
|
|
func NewPrivateID() (PrivateID, error) {
|
|
|
|
return logid.NewPrivateID()
|
2020-02-05 22:16:58 +00:00
|
|
|
}
|
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
// Deprecated: Use "tailscale.com/types/logid".ParsePrivateID instead.
|
2020-04-05 16:15:15 +00:00
|
|
|
func ParsePrivateID(s string) (PrivateID, error) {
|
2022-11-28 23:25:47 +00:00
|
|
|
return logid.ParsePrivateID(s)
|
2020-02-05 22:16:58 +00:00
|
|
|
}
|
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
// Deprecated: Use "tailscale.com/types/logid".PublicID instead.
|
|
|
|
type PublicID = logid.PublicID
|
2020-02-05 22:16:58 +00:00
|
|
|
|
2022-11-28 23:25:47 +00:00
|
|
|
// Deprecated: Use "tailscale.com/types/logid".ParsePublicID instead.
|
2020-04-13 15:54:35 +00:00
|
|
|
func ParsePublicID(s string) (PublicID, error) {
|
2022-11-28 23:25:47 +00:00
|
|
|
return logid.ParsePublicID(s)
|
2022-01-31 21:11:14 +00:00
|
|
|
}
|