Skip to content

Commit

Permalink
Add NewImage to return a client Image impl
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crosby <[email protected]>
  • Loading branch information
crosbymichael committed Apr 9, 2018
1 parent 9c238a6 commit 3676660
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3676660

Please sign in to comment.