Comments (8)
@sbhklr That's a great point. Due to some changes with V4Signatures (#17), we actually need to have multiple values that are being determined by the region
. The endpoint
and the name
of the region are both used now. This complicates things just a little. You can see the feature/AWS_signature_v4 branch to see what I'm talking about.
Let me look more closely at what I'm doing there and we can discuss what the best solution to this is.
from amazons3requestmanager.
I see. I'm thinking about an elegant solution. Looks like enums aren't really suited for injecting custom values.
from amazons3requestmanager.
Not true, you can use associated values on an enum case. The most elegant way to do this would probably be to create a new region enum case Custom
with associated values for the endpoint and name.
from amazons3requestmanager.
Alright, I didn't know. That's indeed a pretty elegant solution.
from amazons3requestmanager.
Hmm, looks like we cannot mix enum cases with raw values and associated values.
from amazons3requestmanager.
Ah, that's right. Didn't think about that. I should be able to fix this by removing the raw values from the enum. We don't really need them. I'll get that done tomorrow!
from amazons3requestmanager.
Okay, I've removed the raw values from the enum case on develop
. Next step is to add the custom region case.
from amazons3requestmanager.
This has been implemented in version 0.12.0
from amazons3requestmanager.
Related Issues (20)
- errorWithCode(_:failureReason:) is deprecated in Alamofire
- Add operation to find bucket location
- Xcode 8 GM - Swift 2.3 fails to compile HOT 3
- please lower spec dependency to ios 8 HOT 9
- Remove CommonCrypto
- Add support for Pre-Signed URLs
- Break out Alamofire dependency into subspec
- Update `download` example in Readme HOT 4
- Issue for Alamofire 4.0.1 HOT 9
- S3BucketObjectList when using a delimiter doesn't extract the files correctly. HOT 2
- how to track the progress of uploading image or data or file to AS3RM HOT 1
- Example how get image from AWS and convert to UIImage? HOT 1
- Swift 2.3 release HOT 7
- Do amazonS3Manager.upload() function replace '+' character to white space character? HOT 2
- Chunk Upload & Download
- Add support multipart upload HOT 5
- Swift 4 support. HOT 2
- Xcode 9.0 beta compile error HOT 3
- Does not show any error on passing the wrong credentials HOT 1
- Can't compile several code snippets from Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazons3requestmanager.