Harshavardhana
15f68972a5
Some necessary cleanup
...
- Rename 'fs' as 'file' for brevity
- Rename 'inmemory' as 'memory' for brevity
- Change everywhere else
10 years ago
Harshavardhana
41653774fc
Simplify fs codebase, split them into separate files and more commenting
10 years ago
Harshavardhana
01e98eb326
Make BucketPolicy strictly typed
10 years ago
Harshavardhana
7a01db8005
Strict checks for delimiter and prefix if absent or present
10 years ago
Harshavardhana
f8e2b75e23
Get object metadata needs to filter based of Prefix when delimiter is specified
10 years ago
Harshavardhana
4751ed0e30
Add MD5 support for fsStorage, also re-purpose GetObjectMetadata for ListObjects
10 years ago
Harshavardhana
e5af8a3f5d
Further fixes -
...
- All test files have been renamed to their respective <package>_test name,
this is done in accordance with
- https://github.com/golang/go/wiki/CodeReviewComments#import-dot
imports are largely used in testing, but to avoid namespace collision
and circular dependencies
- Never use _* in package names other than "_test" change fragment_v1 to expose
fragment just like 'gopkg.in/check.v1'
10 years ago
Harshavardhana
540723d7ae
Golint cleanup pkg/api
10 years ago
Harshavardhana
76e601b26b
Golint cleanup pkg/storage
10 years ago
Harshavardhana
f2e238199b
Handle individual objects too
10 years ago
Harshavardhana
e400e85639
Add proper path prefix to be delimited
10 years ago
Harshavardhana
cc46475c86
Pathprefix is filtered out properly and delimited as well
10 years ago
Harshavardhana
3a3c8645fc
Update comments across the codebase
10 years ago
Harshavardhana
137584d658
Add comments
10 years ago
Frederick F. Kautz IV
32f8c17174
Renaming AppendUstr to AppendUniqStr
10 years ago
Harshavardhana
eb9a4a83ac
Move AppendUstr(), AppendUint() into helpers
10 years ago
Harshavardhana
0c2d58bc6d
Implement proper delimiter and prefix handling
...
With this change Minio server now responds with, delimited
'object names' in conjunction with prefix filtering
~~~
<ListBucketResult>
<Name>example-bucket</Name>
<Prefix></Prefix>
<Marker></Marker>
<MaxKeys>1000</MaxKeys>
<Delimiter>/</Delimiter>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>sample.html</Key>
<LastModified>2011-02-26T01:56:20.000Z</LastModified>
<ETag>example-bucket#sample.html</ETag>
<Size>142863</Size>
<Owner>
<ID>minio</ID>
<DisplayName>minio</DisplayName>
</Owner>
<StorageClass>STANDARD</StorageClass>
</Contents>
<CommonPrefixes>
<Prefix>photos/</Prefix>
</CommonPrefixes>
</ListBucketResult>
~~~
~~~
<ListBucketResult>
<Name>example-bucket</Name>
<Prefix>photos/2006/</Prefix>
<Marker></Marker>
<MaxKeys>1000</MaxKeys>
<Delimiter>/</Delimiter>
<IsTruncated>false</IsTruncated>
<CommonPrefixes>
<Prefix>photos/2006/feb/</Prefix>
</CommonPrefixes>
<CommonPrefixes>
<Prefix>photos/2006/jan/</Prefix>
</CommonPrefixes>
</ListBucketResult>
~~~
10 years ago
Harshavardhana
d5e5a3b3e6
Use validString
10 years ago
Harshavardhana
53669a0854
Implement delimiter, path prefix
10 years ago
Harshavardhana
51e80eaa6d
Add domain and subdomain support for MinioAPI
...
This change brings in domain and subdomain support
- ./minio --domain "yourminiodomain.com"
This change brings in a much needed feature by keeping
bucketnames as part of your 'DNS' name.
All your existing applications can be migrated off from s3 to
Minio without little to no modifications.
NOTE: Setting up DNS for your `buckets` is out of scope of this feature
10 years ago
Harshavardhana
a3e5121f7b
Make channels more aware of errors and shutdown on error - some cleanup
10 years ago
Harshavardhana
f04beab7c2
Skip policy files
10 years ago
Harshavardhana
eeae64935e
Implement bucket policy handler and with galore of cleanup
10 years ago
Harshavardhana
680848bdcb
Add license header
10 years ago
Frederick F. Kautz IV
288bc3fcc7
Adding content type to backend storage drivers
10 years ago
Frederick F. Kautz IV
7152712f34
Accessing dir as object should return ObjectNotFound
10 years ago
Harshavardhana
5d197dd063
Reply back errors properly
10 years ago
Harshavardhana
82baccb8bf
Prefix if empty skip it before IsValidBucket
10 years ago
Frederick F. Kautz IV
ca7b1a7fc6
Fix build
10 years ago
Harshavardhana
2ccecd3f32
Add list buckets for 'fs'
10 years ago
Frederick F. Kautz IV
5daa408e2c
Creating subdirectories in fs now works
10 years ago
Frederick F. Kautz IV
163a6c35db
Adding fs storage
10 years ago