UNPKG

@cumulus/ingest

Version:
24 lines 894 B
/** * Create a provider client appropriate for the provider config * * @param {Object} providerConfig - a provider config object * @returns {Object} a ProviderClient */ export function buildProviderClient(providerConfig?: Object): Object; /** * Fetch a file from a provider and return it as a string * * @param {Object} param * @param {Object} param.providerClient - a provider client * @param {string} param.remotePath - the path of the file to fetch * @param {string} [param.remoteAltBucket] - alternate per-file bucket override to * the providerClient * bucket * @returns {Promise<string>} the contents of the remote file */ export function fetchTextFile({ providerClient, remotePath, remoteAltBucket }: { providerClient: Object; remotePath: string; remoteAltBucket?: string | undefined; }): Promise<string>; //# sourceMappingURL=providerClientUtils.d.ts.map