Frederick F. Kautz IV
5b1350b4bf
api test now states which driver is currently running
10 years ago
Harshavardhana
a56098b8c9
Make sure in API we handle all error type exclusively, and return certain values exclusively
10 years ago
Frederick F. Kautz IV
6136960cfd
Moving api_test to fixtures for drivers
10 years ago
Frederick F. Kautz IV
959d90fcf7
Adding test for partial objects
10 years ago
Frederick F. Kautz IV
62c4c997c2
Simplifying error handling in api bucket handlers
10 years ago
Frederick F. Kautz IV
318d9d5aa8
API Bucket Handlers errors simplified
10 years ago
Frederick F. Kautz IV
7d657eb55c
Simplifying error response writing for object handlers
10 years ago
Frederick F. Kautz IV
c3cda5d9a8
Adding comments to errors
10 years ago
Frederick F. Kautz IV
ded090a8b0
Normalizing imports in api
10 years ago
Frederick F. Kautz IV
8cbc1c2346
More api cleanup
10 years ago
Frederick F. Kautz IV
452f0f8335
Cleaning up more api code
10 years ago
Frederick F. Kautz IV
d644233054
Rename writeObjectHeaders to setObjectHeaders, fix writing multiple headers bug
10 years ago
Frederick F. Kautz IV
86b32c2147
Minor change from trace to error log
10 years ago
Frederick F. Kautz IV
d5db891094
Simplfying code in api, round 1. Decoupling functions which both write headers and data.
10 years ago
Frederick F. Kautz IV
b165efdfcb
Refactoring pkg/utils/log, copying from golang's log and modifying
10 years ago
Frederick F. Kautz IV
96e26335e2
Adding tests and a fix for get object where bucket is not found
10 years ago
Harshavardhana
58082cd8dc
Add gocyclo into source build, choosing cyclomatic complexity tolerance of 15 and below
10 years ago
Harshavardhana
0474439b43
Code restructuring, assigning proper subsystems to each
...
- Drivers contain
* donut/*
* file/*
* memory/*
- Storage format contains
* donut/*
- GetObject() --> renamed to GetObjectReader()
- Deleted stale objectwriter.go, renamed donutwriter.go to object_writer.go
Simplifying, and documenting codebase further
10 years ago
Harshavardhana
914962bd93
Implement log package as drop-in replacement for handling Debug log-level
10 years ago
Harshavardhana
2b0b5f014a
Update license header Mini should be Minimalist really
10 years ago
Harshavardhana
6eb5315249
Resource list updates
10 years ago
Harshavardhana
a1baed3bbc
Refactor to move config handling into api/
10 years ago
Harshavardhana
7ce3ab3193
Restructure minio api, move signature checks from utils to Api.
10 years ago
Harshavardhana
74b3d092f2
Now MinioAPI handles Content-MD5 set during putObject()
...
- This change also facilitates proper error response
in case of md5 mismatch or corruption
- TODO a test function needs to be implemented
10 years ago
Frederick F. Kautz IV
1a88b36c55
Switching from base64 to hex for etag
10 years ago
Frederick F. Kautz IV
211b084e50
Performing etag off of bytes rather than md5 string
10 years ago
Frederick F. Kautz IV
583c32c774
Metadata now stores hex md5, not base64. Minio API now converts md5 hex to base64.
10 years ago
Harshavardhana
15f68972a5
Some necessary cleanup
...
- Rename 'fs' as 'file' for brevity
- Rename 'inmemory' as 'memory' for brevity
- Change everywhere else
10 years ago
Harshavardhana
596eeb097e
Move from fmt.Errorf to errors.New
...
In many cases fmt.Errorf is good enough, but since
error is an interface, you can use arbitrary data
structures as error values, to allow callers to
inspect the details of the error.
10 years ago
Harshavardhana
67888cbaa9
Restructure and use human readable names
10 years ago
Harshavardhana
a42a48a455
Get object range request added
10 years ago
Frederick F. Kautz IV
24d5018037
Rename StoreBucket to CreateBucket
10 years ago
Harshavardhana
a24bfb007d
Rename dateFormat with understandable name ``iso8601Format``
10 years ago
Harshavardhana
01e98eb326
Make BucketPolicy strictly typed
10 years ago
Harshavardhana
ba85ed7566
Revert "RFC1123 is wrong protocol format for AWS"
...
This reverts commit c7b1f8ded8
.
10 years ago
Harshavardhana
c7b1f8ded8
RFC1123 is wrong protocol format for AWS
10 years ago
Harshavardhana
f8e2b75e23
Get object metadata needs to filter based of Prefix when delimiter is specified
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
66e31445ff
Golint cleanup pkg/utils/crypto/keys
10 years ago
Harshavardhana
b33e2d2f9b
Golint cleanup pkg/utils/config
10 years ago
Frederick F. Kautz IV
6ec7894312
Removing innerxml
10 years ago
Frederick F. Kautz IV
6f7840677a
Fixing xml tags
10 years ago
Frederick F. Kautz IV
34c1e58332
Renaming Package to goPackage to fix golint error
10 years ago
Harshavardhana
3a3c8645fc
Update comments across the codebase
10 years ago
Harshavardhana
c3ad0906e0
Add deadcode code which recursivley goes into all directories and verifies dangling variables.
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
9acb1f728c
Sort list of objects
10 years ago
Harshavardhana
53669a0854
Implement delimiter, path prefix
10 years ago
Harshavardhana
b7868d23ac
Update minioapi documentation
10 years ago