mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Enhance pluginrpc-gen parser
Now handles `package.Type` and `*package.Type` Fixes parsing issues with slice and map types. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
		
							parent
							
								
									c764234c3b
								
							
						
					
					
						commit
						79ff6eaf21
					
				
					 9 changed files with 245 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -14,14 +14,14 @@ type volumeDriverProxy struct {
 | 
			
		|||
 | 
			
		||||
type volumeDriverProxyCreateRequest struct {
 | 
			
		||||
	Name string
 | 
			
		||||
	Opts opts
 | 
			
		||||
	Opts map[string]string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type volumeDriverProxyCreateResponse struct {
 | 
			
		||||
	Err string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (pp *volumeDriverProxy) Create(name string, opts opts) (err error) {
 | 
			
		||||
func (pp *volumeDriverProxy) Create(name string, opts map[string]string) (err error) {
 | 
			
		||||
	var (
 | 
			
		||||
		req volumeDriverProxyCreateRequest
 | 
			
		||||
		ret volumeDriverProxyCreateResponse
 | 
			
		||||
| 
						 | 
				
			
			@ -158,11 +158,11 @@ type volumeDriverProxyListRequest struct {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
type volumeDriverProxyListResponse struct {
 | 
			
		||||
	Volumes list
 | 
			
		||||
	Volumes []*proxyVolume
 | 
			
		||||
	Err     string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (pp *volumeDriverProxy) List() (volumes list, err error) {
 | 
			
		||||
func (pp *volumeDriverProxy) List() (volumes []*proxyVolume, err error) {
 | 
			
		||||
	var (
 | 
			
		||||
		req volumeDriverProxyListRequest
 | 
			
		||||
		ret volumeDriverProxyListResponse
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue