Add ReadOnly field supporting writable deploy keys. (#84)
This commit is contained in:
parent
24adbb03ee
commit
79eee8f12c
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ type CreateKeyOption struct {
|
||||||
// required: true
|
// required: true
|
||||||
// unique: true
|
// unique: true
|
||||||
Key string `json:"key" binding:"Required"`
|
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
|
// CreateDeployKey options when create one deploy key
|
||||||
|
|
Loading…
Reference in a new issue