Browse Source

Add ReadOnly boolean field to deploy keys

Closes #391.

Change-Id: Ie5bca9e80c5d1a1348f640a1a75063bac63f539a
Yannick Utard 10 years ago
committed by Glenn Lewis
parent
commit
8468db8b74
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      github/users_keys.go

+ 5
- 4
github/users_keys.go View File

@ -9,10 +9,11 @@ import "fmt"
// Key represents a public SSH key used to authenticate a user or deploy script.
type Key struct {
ID *int `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
URL *string `json:"url,omitempty"`
Title *string `json:"title,omitempty"`
ID *int `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
URL *string `json:"url,omitempty"`
Title *string `json:"title,omitempty"`
ReadOnly *bool `json:"read_only,omitempty"`
}
func (k Key) String() string {


Loading…
Cancel
Save