mirror of
https://github.com/certd/certd.git
synced 2026-07-14 17:53:28 +08:00
@@ -124,6 +124,19 @@ export class VolcengineClient {
|
||||
return service;
|
||||
}
|
||||
|
||||
async getTOSService(opts: { region?: string }) {
|
||||
const { TosClient } = await import("@volcengine/tos-sdk");
|
||||
|
||||
const client = new TosClient({
|
||||
accessKeyId: this.opts.access.accessKeyId,
|
||||
accessKeySecret: this.opts.access.secretAccessKey,
|
||||
region: opts.region,
|
||||
endpoint: `tos-${opts.region}.volces.com`
|
||||
});
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
async getStsService() {
|
||||
const CommonService = await this.getServiceCls();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user