Rename creds.UserID() to creds.UID()

This commit is contained in:
2025-04-05 13:59:18 -04:00
parent 0e071fcd68
commit b563a7af34
3 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
// Copyright (c) 2021 AUTHORS All rights reserved.
// Copyright (c) 2021-2024 AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -16,14 +16,14 @@ type Creds struct {
uid string
}
// PID returns the process ID associated with the other side of the connection.
func (c *Creds) PID() (pid int) {
return c.pid
}
// UserID returns the userid (or Windows SID) that owns the other side
// of the connection.
// UID returns the userid (or Windows SID) that owns the other side of the connection.
// The returned string is suitable to passing to os/user.LookupId.
func (c *Creds) UserID() (uid string) {
func (c *Creds) UID() (uid string) {
return c.uid
}