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

Method Get

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

Get returns a User entity by its id.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

3113
3114// Get returns a User entity by its id.
3115func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error) {
3116 return c.Query().Where(user.ID(id)).Only(ctx)
3117}
3118
3119// GetX is like Get, but panics if an error occurs.
3120func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User {

Callers 1

GetXMethod · 0.95

Calls 4

QueryMethod · 0.95
IDFunction · 0.92
OnlyMethod · 0.45
WhereMethod · 0.45

Tested by

no test coverage detected