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

Method AllX

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

AllX is like All, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

245
246// AllX is like All, but panics if an error occurs.
247func (_q *APITokenQuery) AllX(ctx context.Context) []*APIToken {
248 nodes, err := _q.All(ctx)
249 if err != nil {
250 panic(err)
251 }
252 return nodes
253}
254
255// IDs executes the query and returns a list of APIToken IDs.
256func (_q *APITokenQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected