MCPcopy Create free account
hub / github.com/gogs/gogs / UpdateDeployKey

Function UpdateDeployKey

internal/database/ssh_key.go:733–736  ·  view source on GitHub ↗

UpdateDeployKey updates deploy key information.

(key *DeployKey)

Source from the content-addressed store, hash-verified

731
732// UpdateDeployKey updates deploy key information.
733func UpdateDeployKey(key *DeployKey) error {
734 _, err := x.Id(key.ID).AllCols().Update(key)
735 return err
736}
737
738// DeleteDeployKey deletes deploy key from its repository authorized_keys file if needed.
739func DeleteDeployKey(doer *User, id int64) error {

Callers 1

checkDeployKeyFunction · 0.92

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected