Add NewImage to return a client Image impl

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2018-04-09 14:56:46 -04:00
parent 9c238a64e9
commit 367666091b

View File

@ -53,6 +53,14 @@ type Image interface {
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 {
client *Client