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.

repo_tree.go 702B

12345678910111213141516171819202122232425
  1. // Copyright 2018 The Gitea 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. // GitEntry represents a git tree
  6. type GitEntry struct {
  7. Path string `json:"path"`
  8. Mode string `json:"mode"`
  9. Type string `json:"type"`
  10. Size int64 `json:"size"`
  11. SHA string `json:"sha"`
  12. URL string `json:"url"`
  13. }
  14. // GitTreeResponse returns a git tree
  15. type GitTreeResponse struct {
  16. SHA string `json:"sha"`
  17. URL string `json:"url"`
  18. Entries []GitEntry `json:"tree"`
  19. Truncated bool `json:"truncated"`
  20. Page int `json:"page"`
  21. TotalCount int `json:"total_count"`
  22. }