mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	pkg/idtools: remove deprecated NewIdentityMapping, UIDS() and GIDS()
These were deprecated in098a44c07f, which is in the 22.06 branch, and no longer in use sincee05f614267so we can remove them from the master branch. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
		
							parent
							
								
									ad8d255bb9
								
							
						
					
					
						commit
						df965f51bf
					
				
					 2 changed files with 0 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -162,20 +162,6 @@ func (i IdentityMapping) Empty() bool {
 | 
			
		|||
	return len(i.UIDMaps) == 0 && len(i.GIDMaps) == 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UIDs returns the mapping for UID.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: reference the UIDMaps field directly.
 | 
			
		||||
func (i IdentityMapping) UIDs() []IDMap {
 | 
			
		||||
	return i.UIDMaps
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GIDs returns the mapping for GID.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: reference the GIDMaps field directly.
 | 
			
		||||
func (i IdentityMapping) GIDs() []IDMap {
 | 
			
		||||
	return i.GIDMaps
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func createIDMap(subidRanges ranges) []IDMap {
 | 
			
		||||
	idMap := []IDMap{}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -237,19 +237,6 @@ func setPermissions(p string, mode os.FileMode, uid, gid int, stat *system.StatT
 | 
			
		|||
	return os.Chown(p, uid, gid)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NewIdentityMapping takes a requested username and
 | 
			
		||||
// using the data from /etc/sub{uid,gid} ranges, creates the
 | 
			
		||||
// proper uid and gid remapping ranges for that user/group pair
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use LoadIdentityMapping.
 | 
			
		||||
func NewIdentityMapping(name string) (*IdentityMapping, error) {
 | 
			
		||||
	m, err := LoadIdentityMapping(name)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return &m, err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// LoadIdentityMapping takes a requested username and
 | 
			
		||||
// using the data from /etc/sub{uid,gid} ranges, creates the
 | 
			
		||||
// proper uid and gid remapping ranges for that user/group pair
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue