gitea源码

git_blob.go 746B

123456789101112131415161718192021222324
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // GitBlobResponse represents a git blob
  5. type GitBlobResponse struct {
  6. // The content of the git blob (may be base64 encoded)
  7. Content *string `json:"content"`
  8. // The encoding used for the content (e.g., "base64")
  9. Encoding *string `json:"encoding"`
  10. // The URL to access this git blob
  11. URL string `json:"url"`
  12. // The SHA hash of the git blob
  13. SHA string `json:"sha"`
  14. // The size of the git blob in bytes
  15. Size int64 `json:"size"`
  16. // The LFS object ID if this blob is stored in LFS
  17. LfsOid *string `json:"lfs_oid,omitempty"`
  18. // The size of the LFS object if this blob is stored in LFS
  19. LfsSize *int64 `json:"lfs_size,omitempty"`
  20. }