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

Method All

app/controlplane/pkg/data/ent/apitoken_query.go:237–244  ·  view source on GitHub ↗

All executes the query and returns a list of APITokens.

(ctx context.Context)

Source from the content-addressed store, hash-verified

235
236// All executes the query and returns a list of APITokens.
237func (_q *APITokenQuery) All(ctx context.Context) ([]*APIToken, error) {
238 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll)
239 if err := _q.prepareQuery(ctx); err != nil {
240 return nil, err
241 }
242 qr := querierAll[[]*APIToken, *APITokenQuery]()
243 return withInterceptors[[]*APIToken](ctx, _q, qr, _q.inters)
244}
245
246// AllX is like All, but panics if an error occurs.
247func (_q *APITokenQuery) AllX(ctx context.Context) []*APIToken {

Callers 6

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadOrganizationMethod · 0.45
loadProjectMethod · 0.45
loadWorkflowMethod · 0.45

Calls 4

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

Tested by

no test coverage detected