mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Add volume API/CLI
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
		
							parent
							
								
									7ef08f39ed
								
							
						
					
					
						commit
						b3b7eb2723
					
				
					 49 changed files with 1457 additions and 396 deletions
				
			
		| 
						 | 
				
			
			@ -14,19 +14,21 @@ type volumeDriverProxy struct {
 | 
			
		|||
 | 
			
		||||
type volumeDriverProxyCreateRequest struct {
 | 
			
		||||
	Name string
 | 
			
		||||
	Opts opts
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type volumeDriverProxyCreateResponse struct {
 | 
			
		||||
	Err string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (pp *volumeDriverProxy) Create(name string) (err error) {
 | 
			
		||||
func (pp *volumeDriverProxy) Create(name string, opts opts) (err error) {
 | 
			
		||||
	var (
 | 
			
		||||
		req volumeDriverProxyCreateRequest
 | 
			
		||||
		ret volumeDriverProxyCreateResponse
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	req.Name = name
 | 
			
		||||
	req.Opts = opts
 | 
			
		||||
	if err = pp.Call("VolumeDriver.Create", req, &ret); err != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue