code.gitea.io/gitea@v1.19.3/modules/structs/user_key.go (about) 1 // Copyright 2015 The Gogs Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package structs 5 6 import ( 7 "time" 8 ) 9 10 // PublicKey publickey is a user key to push code to repository 11 type PublicKey struct { 12 ID int64 `json:"id"` 13 Key string `json:"key"` 14 URL string `json:"url,omitempty"` 15 Title string `json:"title,omitempty"` 16 Fingerprint string `json:"fingerprint,omitempty"` 17 // swagger:strfmt date-time 18 Created time.Time `json:"created_at,omitempty"` 19 Owner *User `json:"user,omitempty"` 20 ReadOnly bool `json:"read_only,omitempty"` 21 KeyType string `json:"key_type,omitempty"` 22 }