MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / getSSHKeysForUser

Function getSSHKeysForUser

cmd/get_ssh_keys.go:102–112  ·  view source on GitHub ↗
(uid int, opts *gitlab.ListSSHKeysForUserOptions)

Source from the content-addressed store, hash-verified

100}
101
102func getSSHKeysForUser(uid int, opts *gitlab.ListSSHKeysForUserOptions) ([]*gitlab.SSHKey, error) {
103 git, err := newGitlabClient()
104 if err != nil {
105 return nil, err
106 }
107 keys, _, err := git.Users.ListSSHKeysForUser(uid, opts)
108 if err != nil {
109 return nil, err
110 }
111 return keys, nil
112}

Callers 2

deleteAllSSHKeyForUserFunction · 0.85
runGetSSHKeyForUserFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by 1

deleteAllSSHKeyForUserFunction · 0.68