github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/pkg/idtools/usergroupadd_unsupported.go (about)

     1  //go:build !linux
     2  // +build !linux
     3  
     4  package idtools // import "github.com/docker/docker/pkg/idtools"
     5  
     6  import "fmt"
     7  
     8  // AddNamespaceRangesUser takes a name and finds an unused uid, gid pair
     9  // and calls the appropriate helper function to add the group and then
    10  // the user to the group in /etc/group and /etc/passwd respectively.
    11  func AddNamespaceRangesUser(name string) (int, int, error) {
    12  	return -1, -1, fmt.Errorf("No support for adding users or groups on this OS")
    13  }