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

Method Delete

app/controlplane/pkg/data/user.go:105–110  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

103}
104
105func (r *userRepo) Delete(ctx context.Context, userID uuid.UUID) (err error) {
106 ctx, span := otelx.Start(ctx, userRepoTracer, "UserRepo.Delete")
107 defer span.End()
108
109 return r.data.DB.User.DeleteOneID(userID).Exec(ctx)
110}
111
112// UpdateAccess updates the access restriction for a user
113func (r *userRepo) UpdateAccess(ctx context.Context, userID uuid.UUID, isAccessRestricted bool) (*biz.User, error) {

Callers

nothing calls this directly

Calls 3

StartFunction · 0.92
ExecMethod · 0.65
DeleteOneIDMethod · 0.45

Tested by

no test coverage detected