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 630B

123456789101112131415161718192021222324
  1. // Copyright 2018 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // GitEntry represents a git tree
  5. type GitEntry struct {
  6. Path string `json:"path"`
  7. Mode string `json:"mode"`
  8. Type string `json:"type"`
  9. Size int64 `json:"size"`
  10. SHA string `json:"sha"`
  11. URL string `json:"url"`
  12. }
  13. // GitTreeResponse returns a git tree
  14. type GitTreeResponse struct {
  15. SHA string `json:"sha"`
  16. URL string `json:"url"`
  17. Entries []GitEntry `json:"tree"`
  18. Truncated bool `json:"truncated"`
  19. Page int `json:"page"`
  20. TotalCount int `json:"total_count"`
  21. }