gitea/modules/structs
wxiaoguang 236c645bf1
Refactor "Content" for file uploading ()
Before: the concept "Content string" is used everywhere. It has some
problems:

1. Sometimes it means "base64 encoded content", sometimes it means "raw
binary content"
2. It doesn't work with large files, eg: uploading a 1G LFS file would
make Gitea process OOM

This PR does the refactoring: use "ContentReader" / "ContentBase64"
instead of "Content"

This PR is not breaking because the key in API JSON is still "content":
`` ContentBase64 string `json:"content"` ``
..
activity.go Add activity feeds API ()
activitypub.go Implement FSFE REUSE for golang files ()
admin_user.go Allow custom "created" timestamps in user creation API ()
attachment.go Implement FSFE REUSE for golang files ()
commit_status.go Implement actions ()
cron.go Implement FSFE REUSE for golang files ()
doc.go Implement FSFE REUSE for golang files ()
fork.go Implement FSFE REUSE for golang files ()
git_blob.go Implement FSFE REUSE for golang files ()
git_hook.go Implement FSFE REUSE for golang files ()
hook.go New webhook trigger for receiving Pull Request review requests ()
issue.go Replace `interface{}` with `any` ()
issue_comment.go Add API management for issue/pull and comment attachments ()
issue_label.go Add API for Label templates ()
issue_milestone.go Implement FSFE REUSE for golang files ()
issue_reaction.go Implement FSFE REUSE for golang files ()
issue_stopwatch.go Implement FSFE REUSE for golang files ()
issue_test.go Implement FSFE REUSE for golang files ()
issue_tracked_time.go Implement FSFE REUSE for golang files ()
lfs_lock.go Implement FSFE REUSE for golang files ()
mirror.go Add `sync_on_commit` option for push mirrors api ()
miscellaneous.go Add API for gitignore templates ()
nodeinfo.go Implement FSFE REUSE for golang files ()
notifications.go Implement FSFE REUSE for golang files ()
org.go Fix Org edit page bugs: renaming detection, maxlength ()
org_member.go Implement FSFE REUSE for golang files ()
org_team.go Implement FSFE REUSE for golang files ()
package.go Implement FSFE REUSE for golang files ()
pull.go Add the ability to pin Issues ()
pull_review.go Implement FSFE REUSE for golang files ()
release.go Implement FSFE REUSE for golang files ()
repo.go Add API for changing Avatars ()
repo_branch.go Supports wildcard protected branch ()
repo_collaborator.go Implement FSFE REUSE for golang files ()
repo_commit.go Implement FSFE REUSE for golang files ()
repo_file.go Refactor "Content" for file uploading ()
repo_key.go Implement FSFE REUSE for golang files ()
repo_note.go Implement FSFE REUSE for golang files ()
repo_refs.go Implement FSFE REUSE for golang files ()
repo_tag.go Implement FSFE REUSE for golang files ()
repo_topic.go Implement FSFE REUSE for golang files ()
repo_tree.go Implement FSFE REUSE for golang files ()
repo_watch.go Replace `interface{}` with `any` ()
repo_wiki.go Implement FSFE REUSE for golang files ()
settings.go Implement FSFE REUSE for golang files ()
status.go Implement FSFE REUSE for golang files ()
task.go Make repo migration cancelable and fix various bugs ()
user.go Add API for changing Avatars ()
user_app.go Add scopes to API to create token and display them ()
user_email.go add admin API email endpoints ()
user_gpgkey.go Implement FSFE REUSE for golang files ()
user_key.go Implement FSFE REUSE for golang files ()
visible_type.go change org_type.go to visible_type.go and fix the notes ()