Discover Packages
github.com/tailscale/peercred
package
module
Version:
v0.0.0-...-b535050
Opens a new window with list of versions in this module.
Published: Feb 14, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package peercred maps from a net.Conn to information about the
other side of the connection, using various OS-specific facilities.
Creds are the peer credentials.
Get returns the peer credentials for c.
For unsupported system, the error is ErrNotImplemented.
UserID returns the userid (or Windows SID) that owns the other side
of the connection, if known. (ok is false if not known)
The returned string is suitable to passing to os/user.LookupId.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.