ab35df454d
Removed pre-go1.17 build-tags with go fix; go mod init go fix -mod=readonly ./... rm go.mod Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
454 B
Go
12 lines
454 B
Go
//go:build !linux
|
|
|
|
package idtools // import "github.com/docker/docker/pkg/idtools"
|
|
|
|
import "fmt"
|
|
|
|
// AddNamespaceRangesUser takes a name and finds an unused uid, gid pair
|
|
// and calls the appropriate helper function to add the group and then
|
|
// the user to the group in /etc/group and /etc/passwd respectively.
|
|
func AddNamespaceRangesUser(name string) (int, int, error) {
|
|
return -1, -1, fmt.Errorf("No support for adding users or groups on this OS")
|
|
}
|