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

Method InsertGitSSHKey

coderd/database/dbauthz/dbauthz.go:5610–5612  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertGitSSHKeyParams)

Source from the content-addressed store, hash-verified

5608}
5609
5610func (q *querier) InsertGitSSHKey(ctx context.Context, arg database.InsertGitSSHKeyParams) (database.GitSSHKey, error) {
5611 return insertWithAction(q.log, q.auth, rbac.ResourceUser.WithOwner(arg.UserID.String()).WithID(arg.UserID), policy.ActionUpdatePersonal, q.db.InsertGitSSHKey)(ctx, arg)
5612}
5613
5614func (q *querier) InsertGroup(ctx context.Context, arg database.InsertGroupParams) (database.Group, error) {
5615 return insert(q.log, q.auth, rbac.ResourceGroup.InOrg(arg.OrganizationID), q.db.InsertGroup)(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