Merge pull request #2283 from crosbymichael/image
Add NewImage to return a client Image impl
This commit is contained in:
		
							
								
								
									
										8
									
								
								image.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								image.go
									
									
									
									
									
								
							@@ -53,6 +53,14 @@ type Image interface {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var _ = (Image)(&image{})
 | 
					var _ = (Image)(&image{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewImage returns a client image object from the metadata image
 | 
				
			||||||
 | 
					func NewImage(client *Client, i images.Image) Image {
 | 
				
			||||||
 | 
						return &image{
 | 
				
			||||||
 | 
							client: client,
 | 
				
			||||||
 | 
							i:      i,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type image struct {
 | 
					type image struct {
 | 
				
			||||||
	client *Client
 | 
						client *Client
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user