MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / All

Method All

app/controlplane/pkg/data/ent/workflow_query.go:358–365  ·  view source on GitHub ↗

All executes the query and returns a list of Workflows.

(ctx context.Context)

Source from the content-addressed store, hash-verified

356
357// All executes the query and returns a list of Workflows.
358func (_q *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error) {
359 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll)
360 if err := _q.prepareQuery(ctx); err != nil {
361 return nil, err
362 }
363 qr := querierAll[[]*Workflow, *WorkflowQuery]()
364 return withInterceptors[[]*Workflow](ctx, _q, qr, _q.inters)
365}
366
367// AllX is like All, but panics if an error occurs.
368func (_q *WorkflowQuery) AllX(ctx context.Context) []*Workflow {

Callers 10

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadRobotaccountsMethod · 0.45
loadWorkflowrunsMethod · 0.45
loadOrganizationMethod · 0.45
loadContractMethod · 0.45
loadProjectMethod · 0.45
loadLatestWorkflowRunMethod · 0.45

Calls 4

prepareQueryMethod · 0.95
setContextOpFunction · 0.85
querierAllFunction · 0.85
withInterceptorsFunction · 0.85

Tested by

no test coverage detected