Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Nov 19, 2023
1 parent 5e8c5a5 commit 7bb404c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion pkg/lagoon/users/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type Client interface {
ListUsers(string) ([]byte, error)
AddUser(api.User) ([]byte, error)
AddSSHKeyToUser(api.User, api.SSHKey) ([]byte, error)
DeleteSSHKey(string) ([]byte, error)
DeleteUser(api.User) ([]byte, error)
ModifyUser(api.User, api.User) ([]byte, error)
ListUserSSHKeys(string, string, bool) ([]byte, error)
Expand Down
20 changes: 1 addition & 19 deletions pkg/lagoon/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,6 @@ func (u *Users) AddSSHKeyToUser(user api.User, sshKey api.SSHKey) ([]byte, error
return returnResult, nil
}

// DeleteSSHKey function
func (u *Users) DeleteSSHKey(keyName string) ([]byte, error) {
customReq := api.CustomRequest{
Query: `mutation deleteSshKey ($keyname: String!) {
deleteSshKey(input:{name: $keyname})
}`,
Variables: map[string]interface{}{
"keyname": keyName,
},
MappedResult: "deleteSshKey",
}
returnResult, err := u.api.Request(customReq)
if err != nil {
return []byte(""), err
}
return returnResult, nil
}

// DeleteUser function
func (u *Users) DeleteUser(user api.User) ([]byte, error) {
customReq := api.CustomRequest{
Expand Down Expand Up @@ -218,7 +200,7 @@ func (u *Users) ListUserSSHKeys(groupName string, email string, allUsers bool) (
customReq := api.CustomRequest{
Query: `query allGroups ($name: String) {
allGroups (name: $name) {
name
nameListUserSSHKeys
id
members{
user{
Expand Down

0 comments on commit 7bb404c

Please sign in to comment.