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

Method UpdateGitSSHKey

coderd/database/dbauthz/dbauthz.go:6908–6913  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateGitSSHKeyParams)

Source from the content-addressed store, hash-verified

6906}
6907
6908func (q *querier) UpdateGitSSHKey(ctx context.Context, arg database.UpdateGitSSHKeyParams) (database.GitSSHKey, error) {
6909 fetch := func(ctx context.Context, arg database.UpdateGitSSHKeyParams) (database.GitSSHKey, error) {
6910 return q.db.GetGitSSHKey(ctx, arg.UserID)
6911 }
6912 return fetchAndQuery(q.log, q.auth, policy.ActionUpdatePersonal, fetch, q.db.UpdateGitSSHKey)(ctx, arg)
6913}
6914
6915func (q *querier) UpdateGroupByID(ctx context.Context, arg database.UpdateGroupByIDParams) (database.Group, error) {
6916 fetch := func(ctx context.Context, arg database.UpdateGroupByIDParams) (database.Group, error) {

Callers

nothing calls this directly

Calls 2

fetchAndQueryFunction · 0.85
GetGitSSHKeyMethod · 0.65

Tested by

no test coverage detected