Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor uploader package for easier library use #282

Merged
merged 4 commits into from
May 22, 2018

Conversation

imjasonh
Copy link
Contributor

Rather than having the uploader package take a directory to walk, the package now has an Enqueue method which enqueues the path to upload. This makes it more generally usable in other contexts, such as in Skaffold (GoogleContainerTools/skaffold#568)

gcs-uploader/main.go is now responsible for doing the filepath.Walk and Enqueueing paths to upload.

This change also:

  • removes unnecessary buildHTTPClient methods from gcs-fetcher/main.go and gcs-uploader/main.go
  • renames types GCSFetcher -> Fetcher and GCSUploader -> Uploader

@imjasonh imjasonh requested a review from bendory May 21, 2018 17:21
@imjasonh imjasonh merged commit 197f549 into GoogleCloudPlatform:master May 22, 2018
jakebiesinger-onduo pushed a commit to jakebiesinger/cloud-builders that referenced this pull request Nov 3, 2019
…#282)

* Unify uploader and fetcher

* Librarize uploader package
k0uki pushed a commit to OLTAInc/cloud-builders that referenced this pull request Oct 5, 2021
…#282)

Reduces need for installation of additional packages to perform basic
tasks during build time.

Same image build process as packer. alpine pinned to 3.9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants