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.

23 lines
713 B

  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. import (
  6. "time"
  7. )
  8. // PublicKey publickey is a user key to push code to repository
  9. type PublicKey struct {
  10. ID int64 `json:"id"`
  11. Key string `json:"key"`
  12. URL string `json:"url,omitempty"`
  13. Title string `json:"title,omitempty"`
  14. Fingerprint string `json:"fingerprint,omitempty"`
  15. // swagger:strfmt date-time
  16. Created time.Time `json:"created_at,omitempty"`
  17. Owner *User `json:"user,omitempty"`
  18. ReadOnly bool `json:"read_only,omitempty"`
  19. KeyType string `json:"key_type,omitempty"`
  20. }