github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/pkg/idtools/usergroupadd_unsupported.go (about)

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