import { S3Client } from "https://deno.land/x/s3_lite_client@0.2.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, content: string) {
return await new S3Client(s3).putObject(path, content);
}
Submitted by admin 497 days ago
import { S3Client } from "https://deno.land/x/s3_lite_client@0.2.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,
content: string,
) {
return await new S3Client(s3).putObject(path, content);
}
Submitted by admin 500 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.2.0/mod.ts";
export async function main(
s3: wmill.Resource<"s3">,
path: string,
content: string,
) {
return await new S3Client(s3).putObject(path, content);
}
Submitted by adam186 628 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import { S3Client } from "https://deno.land/x/s3_lite_client@0.2.0/mod.ts";
export async function main(
s3: wmill.Resource<"s3">,
path: string,
content: string,
) {
return await new S3Client(s3).putObject(path, content);
}
Submitted by adam186 663 days ago
import * as wmill from "https://deno.land/x/windmill@v1.30.0/mod.ts";
import { S3Client } from "https://deno.land/x/s3_lite_client@0.2.0/mod.ts";
export async function main(
s3: wmill.Resource<"s3">,
path: string,
content: string,
) {
return await new S3Client(s3).putObject(path, content);
}
Submitted by admin 859 days ago