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

Method OnlyIDX

app/controlplane/pkg/data/ent/user_query.go:205–211  ·  view source on GitHub ↗

OnlyIDX is like OnlyID, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

203
204// OnlyIDX is like OnlyID, but panics if an error occurs.
205func (_q *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID {
206 id, err := _q.OnlyID(ctx)
207 if err != nil {
208 panic(err)
209 }
210 return id
211}
212
213// All executes the query and returns a list of Users.
214func (_q *UserQuery) All(ctx context.Context) ([]*User, error) {

Callers

nothing calls this directly

Calls 1

OnlyIDMethod · 0.95

Tested by

no test coverage detected