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

Method GetX

app/controlplane/pkg/data/ent/client.go:3120–3126  ·  view source on GitHub ↗

GetX is like Get, but panics if an error occurs.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

3118
3119// GetX is like Get, but panics if an error occurs.
3120func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User {
3121 obj, err := c.Get(ctx, id)
3122 if err != nil {
3123 panic(err)
3124 }
3125 return obj
3126}
3127
3128// QueryMemberships queries the memberships edge of a User.
3129func (c *UserClient) QueryMemberships(_m *User) *MembershipQuery {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected