Merge pull request #1554 from mlaventure/list-images-filters

client: Allow specifying filters when listing images
This commit is contained in:
Michael Crosby 2017-09-25 11:14:04 -04:00 committed by GitHub
commit 76bfff3920

View File

@ -340,8 +340,8 @@ func (c *Client) GetImage(ctx context.Context, ref string) (Image, error) {
}
// ListImages returns all existing images
func (c *Client) ListImages(ctx context.Context) ([]Image, error) {
imgs, err := c.ImageService().List(ctx)
func (c *Client) ListImages(ctx context.Context, filters ...string) ([]Image, error) {
imgs, err := c.ImageService().List(ctx, filters...)
if err != nil {
return nil, err
}