Brendan Ashworth
fab45aae40
pkg/fs: add bucket test and benchmarks
...
Lots of useful benchmarks and a simple test addition!
9 years ago
Brendan Ashworth
7399d8ceaa
pkg/fs: skip unnecessary os.Stat system call
9 years ago
Brendan Ashworth
0a0451a0fb
pkg/fs: DRY SetBucketMetadata
...
It had a lot of code that was the same as GetBucketMetadata, so instead
call GBM from SBM so as to reduce doing the same thing in two different
spots. Theoretically this will induce a small overhead as now at least
two calls of denormalizeBucket are made, although this shouldn't be
noticeable.
9 years ago
Brendan Ashworth
294ea814bf
pkg/fs: for locks, prefer defer and read-only ops
...
This commit prefers the use of 'defer' for fs.Unlock (and fs.RUnlock)
because it is more idiomatic Go and reduces repetition in the code,
lending to a cleaner code base.
It also switches a few uses of the lock to read-only locks, which should
improve performance of those functions dramatically in certain contexts.
9 years ago
Anand Babu (AB) Periasamy
d54a8a9c07
Merge pull request #1195 from harshavardhana/delete-objects
...
api: Implement multiple objects Delete api - fixes #956
9 years ago
Harshavardhana
aed62788d9
api: Implement multiple objects Delete api - fixes #956
...
This API takes input XML input in following form.
```
<?xml version="1.0" encoding="UTF-8"?>
<Delete>
<Quiet>true</Quiet>
<Object>
<Key>Key</Key>
</Object>
<Object>
<Key>Key</Key>
</Object>
...
</Delete>
```
and responds the list of successful deletes, list of errors
for all the deleted objects.
```
<?xml version="1.0" encoding="UTF-8"?>
<DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/ ">
<Deleted>
<Key>sample1.txt</Key>
</Deleted>
<Error>
<Key>sample2.txt</Key>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
</Error>
</DeleteResult>
```
9 years ago
Harshavardhana
6f842124ad
Merge pull request #1197 from brendanashworth/improve-DRY-1
...
api: DRY code and add new test
9 years ago
Brendan Ashworth
adf74ffdb0
api: DRY code and add new test
...
This commit makes code cleaner and reduces the repetitions in the code
base. Specifically, it reduces the clutter in setObjectHeaders. It also
merges encodeSuccessResponse and encodeErrorResponse together because
they served no purpose differently. Finally, it adds a simple test for
generateRequestID.
9 years ago
Harshavardhana
e883583804
Merge pull request #1192 from harshavardhana/color
...
console: Fix console color printing on windows.
9 years ago
Harshavardhana
164dfe2ec9
console: Fix console color printing on windows.
...
Print colored accessKeyID and secretAccessKey are unreadable on windows
on command prompts and powershell.
Use the console package from minio client.
9 years ago
Harshavardhana
91800cff53
Merge pull request #1189 from krishnasrinivas/assets-gzip-encoding
...
browser-assets: serve asset files with compression.
9 years ago
Krishna Srinivas
44b2037667
browser-assets: serve asset files with compression.
9 years ago
Harshavardhana
8bf882e5c0
Merge pull request #1188 from harshavardhana/vendorize
...
browser: vendorize to new browser update
9 years ago
Harshavardhana
95d3ecb9ce
browser: vendorize to new browser update
9 years ago
Harshavardhana
97472e76b0
Merge pull request #1187 from harshavardhana/support-newfiles
...
routers: Support special asset files.
9 years ago
Harshavardhana
df0bce374c
routers: Support special asset files.
...
- loader.css
- logo.svg
- {firefox,chrome,safari}.png
9 years ago
Harshavardhana
356b889e66
Merge pull request #1184 from harshavardhana/multipart
...
multipart: remove proper MD5, rather create MD5 based on parts to be s3 compatible.
9 years ago
Harshavardhana
f111997184
multipart: remove proper MD5, rather create MD5 based on parts to be s3 compatible.
...
This increases the performance phenominally.
9 years ago
Harshavardhana
5f2cfdfbe2
Merge pull request #1185 from harshavardhana/fix-signature
...
signature: Fix signature handling of parallel requests.
9 years ago
Harshavardhana
17d145df3a
signature: Fix signature handling of parallel requests.
...
Signature struct should be immutable, this fixes an issue
with AWS cli not being able to do multipart put operations.
9 years ago
GarimaKapoor
b37fbabe7f
Update README.md
9 years ago
Harshavardhana
d7767d6431
Merge pull request #1181 from hackintoshrao/vet-shadow-fix
...
build: Removing error initialization to solve variable shadowing
9 years ago
Karthic Rao
6651f5b368
go vet shadow error patch
9 years ago
Harshavardhana
dc622674e1
Merge pull request #1178 from harshavardhana/list-objects
...
list: Fix handling of maxKeys and prefixes.
9 years ago
Harshavardhana
c7021f6a95
list: Fix handling of maxKeys and prefixes.
...
This fixes a problem of requeuing the same request
and also fixes a major problem of sending truncated
for full key prefixes.
Fixes #1177
9 years ago
Harshavardhana
53ca192fe7
Merge pull request #1175 from harshavardhana/get-object
...
api: Implement support for additional request headers.
9 years ago
Harshavardhana
ee1b86e517
api: Implement support for additional request headers.
...
Now GetObject and HeadObject both support
- If-Modified-Since, If-Unmodified-Since
- If-Match, If-None-Match
request headers.
These headers are used to further handle the responses for GetObject
and HeadObject API.
Fixes #1098
9 years ago
Harshavardhana
0b2e449727
Merge pull request #1174 from harshavardhana/copy-object
...
api: Implement CopyObject s3 API, doing server side copy.
9 years ago
Harshavardhana
3ff8a1b719
api: Implement CopyObject s3 API, doing server side copy.
...
Fixes #1172
9 years ago
Harshavardhana
2520298734
Merge pull request #1170 from krishnasrinivas/caching
...
caching: disable caching of index.html and enable caching for other UI asset files.
9 years ago
Krishna Srinivas
af7170675d
caching: disable caching of index.html and enable caching for other UI asset files.
9 years ago
Harshavardhana
7780a1ce4c
Merge pull request #1171 from harshavardhana/disable-multi
...
api: Return NotImplemented for MultiDelete and CopyObject APIs
9 years ago
Harshavardhana
ae6e774377
api: Return NotImplemented for MultiDelete and CopyObject APIs
9 years ago
Harshavardhana
2ec211e52a
Merge pull request #1169 from minio/harshavardhana-patch-1
...
Update README.md
9 years ago
Harshavardhana
9122f06307
Update README.md
9 years ago
Harshavardhana
04d6408c31
Merge pull request #1167 from harshavardhana/fix-release-tag
...
build: Fix release tag.
9 years ago
Harshavardhana
024c00addd
build: Fix release tag.
9 years ago
Harshavardhana
2c26b98242
Merge pull request #1166 from harshavardhana/release
...
build: Add release builds, now generated with 'make release'
9 years ago
Harshavardhana
223245cc45
build: Add release builds, now generated with 'make release'
...
Currently supported platforms are
- linux{amd64,arm,386}
- winows{amd64,386}
- darwin{amd64}
9 years ago
Harshavardhana
781540081d
vendor: Update to new upstream changes from fatih/color
...
Brings in changes like support for Solaris/FreeBSD.
9 years ago
Harshavardhana
acb44e294c
Merge pull request #1140 from harshavardhana/go1.6
...
build/vet: Fix all the shadowing reports with go1.6
9 years ago
Harshavardhana
408aa72146
build/vet: Fix all the shadowing reports with go1.6
...
Golang 1.6 is default version for the build now.
Additionally set 'GODEBUG=cgocheck=0' for now, until
we fix the erasure coding package.
Readmore here https://tip.golang.org/doc/go1.6#cgo
9 years ago
Harshavardhana
04424ae9c2
Merge pull request #1163 from harshavardhana/minio-browser
...
web: Removing dependency for gpg and downloading assets.
9 years ago
Harshavardhana
2181003609
web: Removing dependency for gpg and downloading assets.
...
Assets are vendorized from now on and updated for each release.
9 years ago
Harshavardhana
997141d031
Merge pull request #1161 from krishnasrinivas/feb-23
...
UI: serve index.html if the requested file is not found in the assets bundle.
9 years ago
Krishna Srinivas
e509bcb2b9
UI: serve index.html if the requested file is not found in the assets bundle.
9 years ago
Anand Babu (AB) Periasamy
07da31f8b8
Merge pull request #1150 from harshavardhana/signature
...
signV4: Move pkg/signature to pkg/s3/signature4
9 years ago
Harshavardhana
653ceee9ee
signV4: Move pkg/signature to pkg/s3/signature4
...
Cleanup and move this to relevant path.
9 years ago
Anand Babu (AB) Periasamy
b31dac9162
Merge pull request #1144 from harshavardhana/definitions
...
cleanup: Remove definitions and move them to its relative places acco…
9 years ago
Harshavardhana
31c941d320
Merge branch 'osallou-feature_credentials_envvars'
9 years ago