Files
request/gitea/structs/repo_tree.go
Matheus Sampaio Queiroga e19f99af2d
All checks were successful
Golang test / go-test (push) Successful in 16s
Update gitea structs and add more functions
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-06-27 22:08:26 -03:00

25 lines
630 B
Go

// Copyright 2018 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
// GitEntry represents a git tree
type GitEntry struct {
Path string `json:"path"`
Mode string `json:"mode"`
Type string `json:"type"`
Size int64 `json:"size"`
SHA string `json:"sha"`
URL string `json:"url"`
}
// GitTreeResponse returns a git tree
type GitTreeResponse struct {
SHA string `json:"sha"`
URL string `json:"url"`
Entries []GitEntry `json:"tree"`
Truncated bool `json:"truncated"`
Page int `json:"page"`
TotalCount int `json:"total_count"`
}