localhost_oa_based/minio.js

15 lines
339 B
JavaScript
Raw Normal View History

2024-03-08 16:24:29 +08:00
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);
});