MCPcopy Index your code
hub / github.com/rilldata/rill / List

Method List

runtime/controller.go:444–456  ·  view source on GitHub ↗

List returns a list of resources of the specified kind. If kind is empty, all resources are returned. Soft-deleted resources (i.e. resources where DeletedOn != nil) are not returned.

(ctx context.Context, kind, path string, clone bool)

Source from the content-addressed store, hash-verified

442// If kind is empty, all resources are returned.
443// Soft-deleted resources (i.e. resources where DeletedOn != nil) are not returned.
444func (c *Controller) List(ctx context.Context, kind, path string, clone bool) ([]*runtimev1.Resource, error) {
445 ctx, span := tracer.Start(ctx, "Controller.List", trace.WithAttributes(attribute.String("instance_id", c.InstanceID), attribute.String("kind", kind)))
446 defer span.End()
447 if err := c.checkRunning(); err != nil {
448 return nil, err
449 }
450 if ctx.Err() != nil {
451 return nil, ctx.Err()
452 }
453 c.lock(ctx, true)
454 defer c.unlock(ctx, true)
455 return c.catalog.list(kind, path, false, clone), nil
456}
457
458// SubscribeCallback is the callback type passed to Subscribe.
459type SubscribeCallback func(e runtimev1.ResourceEvent, n *runtimev1.ResourceName, r *runtimev1.Resource)

Callers 15

reconcileAndReportFunction · 0.80
InstanceHealthMethod · 0.80
pullFromRemoteMethod · 0.80
deleteRemoteMethod · 0.80
RemovePrefixMethod · 0.80
TestDeveloperShopifyFunction · 0.80
TestClickhousePlaygroundFunction · 0.80
TestS3ModelFunction · 0.80
HandlerMethod · 0.80
HandlerMethod · 0.80
HandlerMethod · 0.80
reconcileAndGetStatusMethod · 0.80

Calls 6

checkRunningMethod · 0.95
lockMethod · 0.95
unlockMethod · 0.95
StringMethod · 0.65
ErrMethod · 0.65
listMethod · 0.45

Tested by 4

TestDeveloperShopifyFunction · 0.64
TestClickhousePlaygroundFunction · 0.64
TestS3ModelFunction · 0.64
TestCreateTriggerAllFunction · 0.64