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.

package.go 859B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import (
  5. "time"
  6. )
  7. // Package represents a package
  8. type Package struct {
  9. ID int64 `json:"id"`
  10. Owner *User `json:"owner"`
  11. Repository *Repository `json:"repository"`
  12. Creator *User `json:"creator"`
  13. Type string `json:"type"`
  14. Name string `json:"name"`
  15. Version string `json:"version"`
  16. HTMLURL string `json:"html_url"`
  17. // swagger:strfmt date-time
  18. CreatedAt time.Time `json:"created_at"`
  19. }
  20. // PackageFile represents a package file
  21. type PackageFile struct {
  22. ID int64 `json:"id"`
  23. Size int64
  24. Name string `json:"name"`
  25. HashMD5 string `json:"md5"`
  26. HashSHA1 string `json:"sha1"`
  27. HashSHA256 string `json:"sha256"`
  28. HashSHA512 string `json:"sha512"`
  29. }