MCPcopy Index your code
hub / github.com/coder/coder / InsertExternalAuthLink

Method InsertExternalAuthLink

coderd/database/dbauthz/dbauthz.go:5602–5604  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertExternalAuthLinkParams)

Source from the content-addressed store, hash-verified

5600}
5601
5602func (q *querier) InsertExternalAuthLink(ctx context.Context, arg database.InsertExternalAuthLinkParams) (database.ExternalAuthLink, error) {
5603 return insertWithAction(q.log, q.auth, rbac.ResourceUser.WithID(arg.UserID).WithOwner(arg.UserID.String()), policy.ActionUpdatePersonal, q.db.InsertExternalAuthLink)(ctx, arg)
5604}
5605
5606func (q *querier) InsertFile(ctx context.Context, arg database.InsertFileParams) (database.File, error) {
5607 return insert(q.log, q.auth, rbac.ResourceFile.WithOwner(arg.CreatedBy.String()), q.db.InsertFile)(ctx, arg)

Callers

nothing calls this directly

Calls 4

insertWithActionFunction · 0.85
WithOwnerMethod · 0.80
WithIDMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected