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

Support Azure Storage #109

Merged
merged 18 commits into from
Jul 28, 2020
Merged

Support Azure Storage #109

merged 18 commits into from
Jul 28, 2020

Conversation

m0ssc0de
Copy link
Contributor

Relate to #4

Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Couple of minor issues to fix and then I can merge and release it.

README.md Outdated Show resolved Hide resolved
src/backends/blob.rs Show resolved Hide resolved
src/backends/blob.rs Show resolved Hide resolved
src/backends/blob.rs Show resolved Hide resolved
src/backends/blob.rs Show resolved Hide resolved
src/backends/blob.rs Show resolved Hide resolved
src/cmds/main.rs Outdated Show resolved Hide resolved
src/cmds/main.rs Outdated Show resolved Hide resolved
.put_block_blob()
.with_container_name(&self.container)
.with_blob_name(&self.make_key(krate))
.with_content_type("text/plain")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are compressed tarballs, not text, was there a reason for setting this content type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it is just as a placeholder. Should it be application/x-tar?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Let me add a commit. Thanks for your patient.

Ok(list
.incomplete_vector
.iter()
.map(|o| o.name.clone())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how list works for azure, but the other backends filter the results only to the items that match the prefix specified for the backend. Also, you should be able to do into_iter here to avoid doing a clone of the string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. this just followed the advice of cargo clippy. It will be fixed in the next commit.
Btw, this demand of Azure has existed for a long time. I guess this is not an important task. Do you have a list of important tasks? I can make a contribution and learn how to write Rust.

m0ssc0de and others added 10 commits July 26, 2020 20:37
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
@m0ssc0de
Copy link
Contributor Author

Thanks for the PR! Couple of minor issues to fix and then I can merge and release it.

Sorry. I just realized that I need to commit the Suggested change. 😝

Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll get this released.

@Jake-Shadle Jake-Shadle merged commit 178c4e9 into EmbarkStudios:main Jul 28, 2020
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