// Watch begins watching for new, changed, or deleted images. func (r *REST) Watch(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) { if !field.Empty() { return nil, errors.New("field selectors are not supported on images") } return r.store.WatchPredicate(ctx, image.MatchImage(label, field), resourceVersion) }
// List obtains a list of images with labels that match selector. func (r *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error) { return r.store.ListPredicate(ctx, image.MatchImage(label, field)) }