Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 86b999e

Browse files
zeripathlafriks
authored andcommitted
Adjust keys api (#121)
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 1819385 commit 86b999e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

gitea/repo_key.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
// DeployKey a deploy key
1515
type DeployKey struct {
1616
ID int64 `json:"id"`
17+
KeyID int64 `json:"key_id"`
1718
Key string `json:"key"`
1819
URL string `json:"url"`
1920
Title string `json:"title"`

gitea/user_key.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ type PublicKey struct {
1919
Title string `json:"title,omitempty"`
2020
Fingerprint string `json:"fingerprint,omitempty"`
2121
// swagger:strfmt date-time
22-
Created time.Time `json:"created_at,omitempty"`
22+
Created time.Time `json:"created_at,omitempty"`
23+
Owner *User `json:"user,omitempty"`
24+
ReadOnly bool `json:"read_only,omitempty"`
25+
KeyType string `json:"key_type,omitempty"`
2326
}
2427

2528
// ListPublicKeys list all the public keys of the user

0 commit comments

Comments
 (0)