Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

configs

configs: Configs

Default configs

Abstract name

name: string

Name of the plugin

Abstract type

type: Type

Type of the plugin. Required in order for Dimensions to know how to use it

Static Database

Database: Database

Static Storage

Storage: Storage

Methods

Abstract download

  • download(key: string, destination: string, useCached: boolean): Promise<string>
  • Download a file to a destination location. Resolves with path to file. If useCached is true and storage plugin does not need to redownload, destination is ignored

    Parameters

    • key: string

      the key referencing the object to download

    • destination: string

      destination path to download to locally

    • useCached: boolean

      if true, storage plugin should avoid downloading file at key if possible. otherwise always redownload

    Returns Promise<string>

Abstract getDownloadURL

  • getDownloadURL(key: string): Promise<string>

Abstract initialize

  • initialize(dimension: Dimension): Promise<any>

Abstract manipulate

  • manipulate(dimension: Dimension): Promise<void>

Abstract upload

  • upload(file: string, destinationName: string): Promise<string>

Abstract uploadTournamentFile

  • uploadTournamentFile(file: string, user: User, tournament: Tournament): Promise<string>

Generated using TypeDoc