Merge pull request #1554 from mlaventure/list-images-filters
client: Allow specifying filters when listing images
This commit is contained in:
commit
76bfff3920
@ -340,8 +340,8 @@ func (c *Client) GetImage(ctx context.Context, ref string) (Image, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ListImages returns all existing images
|
// ListImages returns all existing images
|
||||||
func (c *Client) ListImages(ctx context.Context) ([]Image, error) {
|
func (c *Client) ListImages(ctx context.Context, filters ...string) ([]Image, error) {
|
||||||
imgs, err := c.ImageService().List(ctx)
|
imgs, err := c.ImageService().List(ctx, filters...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user