Options
All
  • Public
  • Public/Protected
  • All
Menu

Provide storage methods to use AWS S3

Hierarchy

  • StorageClass

Index

Constructors

constructor

Properties

vault

Methods

addPluggable

configure

  • configure(config?: any): any

get

  • get(key: string, config?: any): Promise<String | Object>
  • Get a presigned URL of the file or the object data when download:true

    Parameters

    • key: string

      key of the object

    • Optional config: any

    Returns Promise<String | Object>

    • A promise resolves to either a presigned url or the object

getModuleName

  • getModuleName(): string

getPluggable

list

  • list(path: any, config?: any): Promise<any>
  • List bucket objects relative to the level and prefix specified

    Parameters

    • path: any

      the path that contains objects

    • Optional config: any

    Returns Promise<any>

    • Promise resolves to list of keys for all objects in path

put

  • put(key: string, object: any, config?: any): Promise<Object>
  • Put a file in storage bucket specified to configure method

    Parameters

    • key: string

      key of the object

    • object: any

      File to be put in bucket

    • Optional config: any

    Returns Promise<Object>

    • promise resolves to object on success

remove

  • remove(key: string, config?: any): Promise<any>
  • Remove the object for specified key

    Parameters

    • key: string

      key of the object

    • Optional config: any

    Returns Promise<any>

    • Promise resolves upon successful removal of the object

removePluggable

  • removePluggable(providerName: string): void