15 lines
339 B
JavaScript
15 lines
339 B
JavaScript
|
const Minio = require('minio');
|
||
|
|
||
|
const minioClient = new Minio.Client({
|
||
|
endPoint: '144.123.43.138',
|
||
|
port: 8021,
|
||
|
useSSL: false,
|
||
|
accessKey: '8Zttvx4ZbF2ikFRb',
|
||
|
secretKey: 'SCgOJEJXM5vMNQL4fF8opXA1wmpACRfw'
|
||
|
});
|
||
|
|
||
|
minioClient.listBuckets((err, buckets) => {
|
||
|
if (err) return console.log(err);
|
||
|
console.log('Buckets:', buckets);
|
||
|
});
|