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

Function ListDeployKeys

internal/database/ssh_key.go:788–791  ·  view source on GitHub ↗

ListDeployKeys returns all deploy keys by given repository ID.

(repoID int64)

Source from the content-addressed store, hash-verified

786
787// ListDeployKeys returns all deploy keys by given repository ID.
788func ListDeployKeys(repoID int64) ([]*DeployKey, error) {
789 keys := make([]*DeployKey, 0, 5)
790 return keys, x.Where("repo_id = ?", repoID).Find(&keys)
791}

Callers 3

SettingsDeployKeysFunction · 0.92
SettingsDeployKeysPostFunction · 0.92
ListDeployKeysFunction · 0.92

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected