// ToContainer returns the container UID and GID for the host uid and gid
ToContainer returns the container UID and GID for the host uid and gid
// ToContainer returns the container UID and GID for the host uid and gid
func (i *IDMappings) ToContainer(pair IDPair) (int, int, error) {
        uid, err := toContainer(pair.UID, i.uids)
        if err != nil {
                return -1, -1, err
        }
        gid, err := toContainer(pair.GID, i.gids)
        return uid, gid, err
}
func ( i * IDMappings ) ToContainer ( pair IDPair ) ( int , int , error ) { uid , err := toContainer ( pair . UID , i . uids ) if err != nil { return - 1 , - 1 , err } gid , err := toContainer ( pair . GID , i . gids ) return uid , gid , err }
ToContainer returns the container UID and GID for the host uid and gid
ToContainer returns the container UID and GID for the host uid and gid