github.com/rawahars/moby@v24.0.4+incompatible/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  }