You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user_key.go 641B

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