Adjust keys api (#121)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
1819385edd
commit
86b999eaa8
2 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
// DeployKey a deploy key
|
||||
type DeployKey struct {
|
||||
ID int64 `json:"id"`
|
||||
KeyID int64 `json:"key_id"`
|
||||
Key string `json:"key"`
|
||||
URL string `json:"url"`
|
||||
Title string `json:"title"`
|
||||
|
|
|
@ -19,7 +19,10 @@ type PublicKey struct {
|
|||
Title string `json:"title,omitempty"`
|
||||
Fingerprint string `json:"fingerprint,omitempty"`
|
||||
// swagger:strfmt date-time
|
||||
Created time.Time `json:"created_at,omitempty"`
|
||||
Created time.Time `json:"created_at,omitempty"`
|
||||
Owner *User `json:"user,omitempty"`
|
||||
ReadOnly bool `json:"read_only,omitempty"`
|
||||
KeyType string `json:"key_type,omitempty"`
|
||||
}
|
||||
|
||||
// ListPublicKeys list all the public keys of the user
|
||||
|
|
Loading…
Reference in a new issue