Files
skopeo/user_basic.go
Dan Walsh 8ced1276e5 Change functions that use a fmt.Errorf to wrap an err to error.Wrapf
Impove error reporting by wrapping all returned err functions with
error.Wrapf

Signed-off-by: Dan Walsh <dwalsh@redhat.com>

Closes: #124
Approved by: nalind

Signed-off-by: Dan Walsh <dwalsh@redhat.com>

Closes: #125
Approved by: nalind
2017-06-02 14:17:04 +00:00

20 lines
493 B
Go

// +build !cgo !linux
package buildah
import (
"fmt"
)
func lookupUserInContainer(rootdir, username string) (uint64, uint64, error) {
return 0, 0, errors.Wrapf("user lookup not supported")
}
func lookupGroupInContainer(rootdir, groupname string) (uint64, error) {
return 0, errors.Wrapf("group lookup not supported")
}
func lookupGroupForUIDInContainer(rootdir string, userid uint64) (string, uint64, error) {
return "", 0, errors.Wrapf("primary group lookup by uid not supported")
}