1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Fix get-policy/put-policy invalid entries.

Also update documentation, to use subdomains for buckets as minio
server starts supporting subdomains.
This commit is contained in:
Harshavardhana
2015-02-23 02:00:58 -08:00
parent 237c3cdc38
commit c698b097aa
4 changed files with 48 additions and 27 deletions

View File

@@ -0,0 +1,32 @@
'use strict'
var AWS = require('aws-sdk');
var config = {
accessKeyId: "MINIO_ACCESS_ID",
secretAccessKey: "MINIO_SECRET_ID",
endpoint: "localhost:9000",
region: "",
sslEnabled: false,
};
AWS.config.update(config);
var s3 = new AWS.S3();
s3.listBuckets(function(err, data) {
if (err) {
console.log(err); // an error occurred
} else {
console.log(data); // successful response
}
});
var params = {
Bucket: "your-bucket"
};
s3.listObjects(params, function(err, data) {
if (err) console.log(err);
else console.log(data);
});