1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-04 16:30:02 +00:00

vendor update

This commit is contained in:
Sebastiaan van Steenis
2020-08-14 18:43:49 +02:00
parent f251e3ca92
commit 1b24d67a21
152 changed files with 11824 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package user
import (
"io"
"os"
)
// Unix-specific path to the passwd and group formatted files.
const (
unixPasswdPath = "/etc/passwd"
unixGroupPath = "/etc/group"
)
func GetPasswdPath() (string, error) {
return unixPasswdPath, nil
}
func GetPasswd() (io.ReadCloser, error) {
return os.Open(unixPasswdPath)
}
func GetGroupPath() (string, error) {
return unixGroupPath, nil
}
func GetGroup() (io.ReadCloser, error) {
return os.Open(unixGroupPath)
}