forgejo-sdk/gitea
petergardfjall ff00c13597 Add GetArchiveReader() (#476)
This PR close #475

It complements the `Client.GetArchive` call, which returns a byte slice and hence is unsuitable for use with large repositories, with a `Client.GetArchiveReader` method that returns a `io.ReadCloser` that streams the retrieved archvie and, therefore, induces a much smaller memory footprint on the calling client.

Co-authored-by: Peter Gardfjäll <peter.gardfjall.work@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/476
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: petergardfjall <petergardfjall@noreply.gitea.io>
Co-committed-by: petergardfjall <petergardfjall@noreply.gitea.io>
2021-01-18 01:14:07 +08:00
..
admin_cron.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
admin_org.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
admin_repo.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
admin_test.go Various fixes for CI and Makefile (#443) 2020-11-09 08:58:30 +08:00
admin_user.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
attachment.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
client.go Add GetArchiveReader() (#476) 2021-01-18 01:14:07 +08:00
doc.go ask for go get from code.gitea.io/sdk/gitea 2016-11-11 21:52:21 +08:00
fork.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
git_blob.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
git_hook.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
go.mod Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
go.sum Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
helper.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
hook.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue.go Add Ref to Issue structs (#466) 2020-12-16 06:16:31 +08:00
issue_comment.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
issue_comment_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_label.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
Issue_label_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_milestone.go Milestone Functions accept name to identify (#418) 2020-09-15 16:29:24 +00:00
issue_milestone_test.go Milestone Functions accept name to identify (#418) 2020-09-15 16:29:24 +00:00
issue_reaction.go Start v0.14.0 Development (#421) 2020-09-15 20:46:08 +00:00
issue_stopwatch.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_subscription.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
issue_subscription_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_test.go Add Ref to Issue structs (#466) 2020-12-16 06:16:31 +08:00
issue_tracked_time.go Remove & Rename TrackedTimes list functions (#467) 2020-12-17 18:03:47 +08:00
list_options.go added pagination options for listing requests (#205) 2020-02-05 07:59:55 +00:00
main_test.go Make http requests with context (#417) 2020-09-15 16:21:40 +00:00
notifications.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
notifications_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
oauth2.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
oauth2_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org_member.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org_member_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org_team.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
pull.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
pull_review.go Improve PullReview docs (#469) 2020-12-17 18:14:17 +08:00
pull_review_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
pull_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
release.go Add html_url field to Release struct (#477) 2021-01-17 23:14:34 +08:00
release_test.go Add DeleteRepoTag function (#461) 2020-12-10 02:08:22 +08:00
repo.go Add GetArchiveReader() (#476) 2021-01-18 01:14:07 +08:00
repo_branch.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
repo_branch_protection.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
repo_branch_test.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
repo_collaborator.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_commit.go Update CommitMeta Struct (#434) 2020-10-06 23:31:11 +00:00
repo_commit_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_file.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
repo_file_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_key.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_migrate.go Add Gitea2Gitea Migration Support (#454) 2020-11-13 05:16:11 +08:00
repo_refs.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_tag.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_test.go Add GetArchiveReader() (#476) 2021-01-18 01:14:07 +08:00
repo_topics.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_topics_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_transfer.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
repo_transfer_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_tree.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_watch.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_watch_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
settings.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
settings_test.go Update Default Settings for Tests (#435) 2020-10-06 21:15:19 +00:00
status.go Fix GetCombinedStatus() (#470) 2020-12-17 12:46:51 +08:00
status_test.go Fix GetCombinedStatus() (#470) 2020-12-17 12:46:51 +08:00
user.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_app.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_email.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_follow.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_gpgkey.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_key.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_search.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_test.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
version.go Add DeleteRepoTag function (#461) 2020-12-10 02:08:22 +08:00
version_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00