]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go
provider: Ensured Go 1.11 in TravisCI and README
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / fsouza / go-dockerclient / external / github.com / opencontainers / runc / libcontainer / user / lookup_unix.go
CommitLineData
9b12e4fe
JC
1// +build darwin dragonfly freebsd linux netbsd openbsd solaris
2
3package user
4
5import (
6 "io"
7 "os"
8)
9
10// Unix-specific path to the passwd and group formatted files.
11const (
12 unixPasswdPath = "/etc/passwd"
13 unixGroupPath = "/etc/group"
14)
15
16func GetPasswdPath() (string, error) {
17 return unixPasswdPath, nil
18}
19
20func GetPasswd() (io.ReadCloser, error) {
21 return os.Open(unixPasswdPath)
22}
23
24func GetGroupPath() (string, error) {
25 return unixGroupPath, nil
26}
27
28func GetGroup() (io.ReadCloser, error) {
29 return os.Open(unixGroupPath)
30}