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

Method All

app/controlplane/pkg/data/ent/group_query.go:214–221  ·  view source on GitHub ↗

All executes the query and returns a list of Groups.

(ctx context.Context)

Source from the content-addressed store, hash-verified

212
213// All executes the query and returns a list of Groups.
214func (_q *GroupQuery) All(ctx context.Context) ([]*Group, error) {
215 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll)
216 if err := _q.prepareQuery(ctx); err != nil {
217 return nil, err
218 }
219 qr := querierAll[[]*Group, *GroupQuery]()
220 return withInterceptors[[]*Group](ctx, _q, qr, _q.inters)
221}
222
223// AllX is like All, but panics if an error occurs.
224func (_q *GroupQuery) AllX(ctx context.Context) []*Group {

Callers 5

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadGroupMembershipsMethod · 0.45
loadOrganizationMethod · 0.45

Calls 4

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

Tested by

no test coverage detected