MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetSSHPublicKeyByUserId

Function GetSSHPublicKeyByUserId

internal/op/sshkey.go:27–29  ·  view source on GitHub ↗
(userId uint, pageIndex, pageSize int)

Source from the content-addressed store, hash-verified

25}
26
27func GetSSHPublicKeyByUserId(userId uint, pageIndex, pageSize int) (keys []model.SSHPublicKey, count int64, err error) {
28 return db.GetSSHPublicKeyByUserId(userId, pageIndex, pageSize)
29}
30
31func GetSSHPublicKeyByIdAndUserId(id uint, userId uint) (*model.SSHPublicKey, error) {
32 key, err := db.GetSSHPublicKeyById(id)

Callers 2

PublicKeyAuthMethod · 0.92
listFunction · 0.92

Calls 1

GetSSHPublicKeyByUserIdFunction · 0.92

Tested by

no test coverage detected