import * as Minio from "minio@7";
type S3 = {
endPoint: string;
port: number;
useSSL: boolean;
pathStyle: boolean;
bucket: string;
accessKey: string;
secretKey: string;
region: string;
};
export async function main(s3: S3, path: string, content: string) {
return await new Minio.Client(s3).putObject(s3.bucket, path, content);
}
Submitted by hugo989 7 hours ago