Expand kv api
This commit is contained in:
@@ -88,4 +88,19 @@ export class MinioService {
|
||||
): Promise<void> {
|
||||
await this.client.removeObject(bucketName, objectName);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param bucketName
|
||||
* @param objectName
|
||||
* @param expiry Expiry in seconds
|
||||
* @returns
|
||||
*/
|
||||
public async generatePresignedUrl(
|
||||
bucketName: string,
|
||||
objectName: string,
|
||||
expiry: number = 60 * 60 * 24,
|
||||
): Promise<string> {
|
||||
return await this.client.presignedGetObject(bucketName, objectName, expiry);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user