S3ProviderDriver is the driver for AWS S3 provider.

Hierarchy

  • S3ProviderDriver

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • options: {
          accessKeyId: string;
          endpoint: string;
          port: number;
          region: string;
          secretAccessKey: string;
          useSSL: boolean;
      }
      • accessKeyId: string
      • endpoint: string
      • port: number
      • region: string
      • secretAccessKey: string
      • useSSL: boolean

    Returns S3ProviderDriver

Properties

client: Client
region: string

Methods

  • Creates a directory

    Returns

    Returns true if the directory created, else false

    Parameters

    • name: string

      directory name

    • mount: Mount

      mount to check

    Returns Promise<boolean>

  • Delete a file or directory

    Returns

    Returns true if the file or directory was deleted, else false

    Parameters

    • filePath: string

      name of the file or directory

    • mount: Mount

      mount point

    Returns Promise<boolean>

  • Download a file

    Returns

    Parameters

    • id: string

      id of the file

    • mount: Mount

      mount to download the file from

    • options: {} = {}

      options

      Returns Promise<any>

    • Verify if a file exists

      Returns

      Returns true if the file exists, else false

      Parameters

      • path: string

        path to the file

      • mount: Mount

        mount to check

      Returns Promise<boolean>

    • Read entries from a mount point

      Returns

      Entries

      Parameters

      • mount: Mount

        mount point

      Returns Promise<Entries>

    • Upload a file

      Parameters

      • file: File

        file to upload

      • mount: Mount

        mount to upload to

      • options: {} = {}

        options

        Returns Promise<any>

      Generated using TypeDoc