containerd: export Subscribe method on client
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -22,3 +22,7 @@ type publisherFunc func(ctx context.Context, topic string, event Event) error
|
||||
func (fn publisherFunc) Publish(ctx context.Context, topic string, event Event) error {
|
||||
return fn(ctx, topic, event)
|
||||
}
|
||||
|
||||
type Subscriber interface {
|
||||
Subscribe(ctx context.Context, filters ...string) (ch <-chan *events.Envelope, errs <-chan error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user