Update dependencies
This commit is contained in:
20
vendor/tailscale.com/util/osdiag/osdiag.go
generated
vendored
Normal file
20
vendor/tailscale.com/util/osdiag/osdiag.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package osdiag provides loggers for OS-specific diagnostic information.
|
||||
package osdiag
|
||||
|
||||
// LogSupportInfoReason is an enumeration indicating the reason for logging
|
||||
// support info.
|
||||
type LogSupportInfoReason int
|
||||
|
||||
const (
|
||||
LogSupportInfoReasonStartup LogSupportInfoReason = iota + 1 // tailscaled is starting up.
|
||||
LogSupportInfoReasonBugReport // a bugreport is in the process of being gathered.
|
||||
)
|
||||
|
||||
// SupportInfo obtains OS-specific diagnostic information for troubleshooting
|
||||
// and support. The reason governs the verbosity of the output.
|
||||
func SupportInfo(reason LogSupportInfoReason) map[string]any {
|
||||
return supportInfo(reason)
|
||||
}
|
||||
Reference in New Issue
Block a user