Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev updates #25

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4e48a13
feat: Add ability to create, get and delete SSH Keys
MatthewPierson Mar 12, 2024
4a77c55
Merge pull request #22 from MatthewPierson/feat/add_ssh_keys
tommysitehost Mar 12, 2024
c96d66f
chore: Update changelog
MatthewPierson Mar 12, 2024
0d602e6
Merge pull request #23 from MatthewPierson/feat/add_ssh_keys
tommysitehost Mar 12, 2024
bc7cf2f
fix: Add update support for SSH Keys
MatthewPierson Mar 12, 2024
aa2f56c
chore: Update changelog
MatthewPierson Mar 12, 2024
f068555
Merge pull request #24 from MatthewPierson/feat/add_ssh_keys
tommysitehost Mar 12, 2024
ac0e2c3
linty fresh and clean
yakmoose Mar 12, 2023
e6cc0d6
double image endpoints on clouds
yakmoose Mar 13, 2023
abd1dc9
work on cloud db handlers
yakmoose Mar 13, 2023
ce7cbf0
work on cloud db handlers
yakmoose Mar 13, 2023
f66ddcc
add getter for databases
yakmoose Mar 13, 2023
322ff32
add in database functions
yakmoose Mar 13, 2023
ed51ef1
update the change log
yakmoose Mar 13, 2023
fa84bb9
add a little constant for job types
yakmoose Mar 13, 2023
a9b8000
commmiting the right file this time
yakmoose Mar 13, 2023
c3551d0
fix the spelling
yakmoose Mar 13, 2023
0678513
Changelog
yakmoose Mar 15, 2023
c8deeb9
more clean ups, mainly formatting, and ssh user stuff
yakmoose Mar 23, 2023
3e3535a
add in some updates for handling api responses
yakmoose May 1, 2023
decac33
add in db user and grant endpoints
yakmoose Jul 25, 2023
a3c3de8
clean up the stuff
yakmoose Jul 26, 2023
666f965
minor fixes to domain listing/getting
yakmoose Jul 29, 2023
c7b3d1c
work on getting images etc...
yakmoose Jul 30, 2023
bb73626
updates to environment and grant handling
yakmoose Aug 2, 2023
351eef9
work on zone updates etc
yakmoose May 12, 2024
4e36725
bumps?
yakmoose May 13, 2024
6039154
merge and clean up
yakmoose May 14, 2024
2bff46c
Add fixes to random api return types
yakmoose May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fixes to domain listing/getting
  • Loading branch information
yakmoose committed May 13, 2024
commit 666f96506bdb472eea8e842e2b5a89ed14507670
5 changes: 5 additions & 0 deletions pkg/api/dns/recordget.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dns

import (
"context"
"strings"

"github.com/sitehostnz/gosh/pkg/models"
)
Expand All @@ -18,6 +19,7 @@ func (s *Client) GetRecord(ctx context.Context, request RecordRequest) (response
return record, nil
}
}

return response, nil
}

Expand Down Expand Up @@ -45,6 +47,9 @@ func (s *Client) GetRecordWithRecord(ctx context.Context, request models.DNSReco
return response, err
}

// this should really exist elsewhere but somethings go in/out with . and comback without
recordContent := strings.TrimSuffix(record.Content, ".")

for _, r := range records.Return {
if r.Name == request.Name &&
r.Type == request.Type &&
Expand Down
1 change: 1 addition & 0 deletions pkg/api/dns/recordlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (s *Client) ListRecords(ctx context.Context, request ListRecordsRequest) (r
for k := range response.Return {
response.Return[k].Domain = request.Domain
response.Return[k].Content = strings.TrimRight(response.Return[k].Content, ".")
response.Return[k].ClientID = s.client.ClientID
}
}

Expand Down