Options
Menu

Provider Interface

Hierarchy

  • Provider

Index

Properties

protocol

protocol: string

The protocol this Provider can handle (ex: 's3' or 'file')

root

root: string

The root location for this provider (file path or S3 url)

Methods

copyFile

  • Create an operation that will copy a File to a target with the same provider

    remarks

    This method is an optimization designed to allow S3 objects to be copied to another S3 location without being streamed to and from the machine running this code.

    Parameters

    Returns Promise<ProviderOperation>

deleteFile

getFile

  • getFile(file: File): Promise<Readable>

getFileCopySource

  • getFileCopySource(file: File): Promise<string>
  • Returns a string value that can be interpreted by the copyFile method of the implementation to provide the information required by the operation

    Parameters

    Returns Promise<string>

getFileETag

  • getFileETag(file: File): Promise<string>

getTargetFileKey

  • getTargetFileKey(file: File): Promise<string>
  • Returns the Key that should be used in target contexts

    remarks

    Default implementations return file.Key unchanged

    Parameters

    Returns Promise<string>

listFiles

putFile

Generated using TypeDoc