mirror of
https://github.com/containers/buildah.git
synced 2025-12-14 19:42:11 +03:00
Supporess "meaningless package name" warnings for exported APIs which we know are being used by our API consumers, so that we don't break them. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
17 lines
274 B
Go
17 lines
274 B
Go
//go:build linux || darwin || freebsd || netbsd
|
|
|
|
package util //nolint:revive,nolintlint
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func UID(st os.FileInfo) int {
|
|
return int(st.Sys().(*syscall.Stat_t).Uid)
|
|
}
|
|
|
|
func GID(st os.FileInfo) int {
|
|
return int(st.Sys().(*syscall.Stat_t).Gid)
|
|
}
|