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

Function getSSHKeys

cmd/get_ssh_keys.go:90–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func getSSHKeys() ([]*gitlab.SSHKey, error) {
91 git, err := newGitlabClient()
92 if err != nil {
93 return nil, err
94 }
95 keys, _, err := git.Users.ListSSHKeys(nil)
96 if err != nil {
97 return nil, err
98 }
99 return keys, nil
100}
101
102func getSSHKeysForUser(uid int, opts *gitlab.ListSSHKeysForUserOptions) ([]*gitlab.SSHKey, error) {
103 git, err := newGitlabClient()

Callers 1

runGetSSHKeyFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by

no test coverage detected