method GcsProvider.prototype.getSignedUrl
GcsProvider.prototype.getSignedUrl(
path: string,
options: { expiresIn: number; }
): Promise<string>

Creates a signed GET URL for a GCS object.

Parameters

path: string

Object key

options: { expiresIn: number; }

Expiry in seconds

Return Type

Promise<string>

The signed URL

Usage

import { GcsProvider } from "storage-plugin/src/index.ts";