概述
MonadFileStore Instance for minio
目录
Options (类型)
签名
export type Options = MinioClientOptions
v0.2.0 中添加
StoreClient (类型)
签名
export type StoreClient = MinioClient & { region?: string }
v0.2.0 中添加
buildStore (函数)
根据 minio 选项建立 MonadFileStore
签名
export const buildStore = (o: Options): MonadFileStore & PresignedUrl => ...
示例
import * as path from 'path'
import buildStore from 'macoolka-store-minio'
const store = buildStore({
endPoint: 'macoolka.com',
port: 9000,
useSSL: false,
accessKey: 'macoolka',
secretKey: 'macoolka'
})
v0.2.0 中添加