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