| 
									
										
										
										
											2021-02-07 06:49:40 +08:00
										 |  |  | // +build darwin linux
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package define | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"github.com/opencontainers/runc/libcontainer/devices" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-24 18:23:32 +08:00
										 |  |  | // BuildahDevice is a wrapper around devices.Device
 | 
					
						
							|  |  |  | // with additional support for renaming a device
 | 
					
						
							|  |  |  | // using bind-mount in rootless environments.
 | 
					
						
							|  |  |  | type BuildahDevice struct { | 
					
						
							|  |  |  | 	devices.Device | 
					
						
							|  |  |  | 	Source      string | 
					
						
							|  |  |  | 	Destination string | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type ContainerDevices = []BuildahDevice |