Example #1
0
// Watch begins watching for new, changed, or deleted templates.
func (r *REST) Watch(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) {
	return r.WatchPredicate(ctx, registry.MatchTemplate(label, field), resourceVersion)
}
Example #2
0
// List obtains a list of templates with labels that match selector.
func (r *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error) {
	return r.Etcd.ListPredicate(ctx, registry.MatchTemplate(label, field))
}