Add ReadOnly field supporting writable deploy keys. (#84)

This commit is contained in:
Vlad Temian 2017-12-20 08:57:50 +02:00 committed by Lunny Xiao
parent 24adbb03ee
commit 79eee8f12c

View file

@ -46,6 +46,10 @@ type CreateKeyOption struct {
// required: true
// unique: true
Key string `json:"key" binding:"Required"`
// Describe if the key has only read access or read/write
//
// required: false
ReadOnly bool `json:"read_only"`
}
// CreateDeployKey options when create one deploy key