Add Events client method
Fixes #1381 Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
f05281743e
commit
421c607c54
@ -353,6 +353,13 @@ func (c *Client) ListImages(ctx context.Context) ([]Image, error) {
|
|||||||
return images, nil
|
return images, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Events returns an event subscription for the provided filters
|
||||||
|
func (c *Client) Events(ctx context.Context, filters ...string) (eventsapi.Events_SubscribeClient, error) {
|
||||||
|
return c.EventService().Subscribe(ctx, &eventsapi.SubscribeRequest{
|
||||||
|
Filters: filters,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Close closes the clients connection to containerd
|
// Close closes the clients connection to containerd
|
||||||
func (c *Client) Close() error {
|
func (c *Client) Close() error {
|
||||||
return c.conn.Close()
|
return c.conn.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user