import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
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) {
return (await new S3Client(s3).getObject(path)).text();
}
Submitted by admin 478 days ago
import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
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,
) {
return (await new S3Client(s3).getObject(path)).text();
}
Submitted by admin 482 days ago
import type Resource from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
export async function main(
s3: Resource<"s3">,
path: string,
) {
return (await new S3Client(s3).getObject(path)).text();
}
Submitted by rubenfiszel 538 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
export async function main(
s3: wmill.Resource<"s3">,
path: string,
) {
return (await new S3Client(s3).getObject(path)).text();
}
Submitted by yassinsiouda74165 538 days ago