Add deploy key changes (#125)

This commit is contained in:
zeripath 2018-10-24 15:58:56 +01:00 committed by Lauris BH
parent 86b999eaa8
commit 2d00f9f4d4
1 changed files with 9 additions and 7 deletions

View File

@ -13,14 +13,16 @@ import (
// DeployKey a deploy key // DeployKey a deploy key
type DeployKey struct { type DeployKey struct {
ID int64 `json:"id"` ID int64 `json:"id"`
KeyID int64 `json:"key_id"` KeyID int64 `json:"key_id"`
Key string `json:"key"` Key string `json:"key"`
URL string `json:"url"` URL string `json:"url"`
Title string `json:"title"` Title string `json:"title"`
Fingerprint string `json:"fingerprint"`
// swagger:strfmt date-time // swagger:strfmt date-time
Created time.Time `json:"created_at"` Created time.Time `json:"created_at"`
ReadOnly bool `json:"read_only"` ReadOnly bool `json:"read_only"`
Repository *Repository `json:"repository,omitempty"`
} }
// ListDeployKeys list all the deploy keys of one repository // ListDeployKeys list all the deploy keys of one repository