Adjust keys api (#121)

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2018-10-22 12:30:51 +01:00 committed by Lauris BH
parent 1819385edd
commit 86b999eaa8
2 changed files with 5 additions and 1 deletions

View File

@ -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"`

View File

@ -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