Class S3Binary<T>
Type parameters
Hierarchy
-
Binary<T>
- S3Binary
Implements
Constructors
Properties
Methods
Constructors
-
Parameters
-
webda: Core
The main instance of Webda
-
name: string
The name of the service
-
Optional params: any
The parameters block define in the configuration file
Returns S3Binary
-
Properties
Service name
Webda Core object
Logger with class context
Hold the parameters for your service
It will be bring from the webda.config.json
Methods
-
Clean the service data, can only be used in test mode
Returns Promise<any>
-
Parameters
-
name: any
-
property: any
Returns void
-
-
Parameters
-
hash: any
Returns void
-
-
Parameters
-
hash: any
-
uuid: any
Returns Promise<any>
-
-
Parameters
-
hash: any
Returns boolean
-
-
Parameters
-
info: any
Returns any
-
-
Parameters
-
req: any
Returns any
-
-
Parameters
-
buffer: any
Returns any
-
-
Parameters
-
hash: any
-
Default value postfix: any = undefined
Returns string
-
-
Parameters
-
hash: any
Returns Promise<any>
-
-
Parameters
-
info: any
-
ctx: Context
Returns string
-
-
Returns boolean
-
Parameters
-
file: any
Returns void
-
-
Parameters
-
challenge: any
Returns boolean
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Add a route dynamicaly
Parameters
-
url: string
of the route can contains dynamic part like {uuid}
-
methods: HttpMethodType[]
-
executer: Function
Method to execute for this route
-
Optional openapi: object
-
Optional allowPath: boolean
Returns void
-
-
Parameters
-
info: any
-
uuid: any
Returns Promise<any>
-
-
Parameters
-
hash: any
-
challenge: any
Returns boolean
-
-
Returns void
-
Parameters
-
targetStore: any
-
object: any
-
property: any
-
index: any
Returns Promise<any>
-
-
Parameters
-
targetStore: any
-
object: any
-
property: any
-
index: any
Returns any
-
-
Download a binary to a file
Parameters
-
info: any
The reference stored in your target object
-
filename: any
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Emit the event with data and wait for Promise to finish if listener returned a Promise
Parameters
-
event: any
-
data: any
Returns Promise<any[]>
-
-
Returns Array<string | symbol>
-
Parameters
-
Bucket: string
to iterate on
-
callback: function
to execute with each key
-
-
Parameters
-
Key: string
-
page: number
Returns Promise<void>
-
-
-
-
Default value Prefix: string = ""
to use
-
Default value filter: RegExp = undefined
regexp to execute on the key
Returns Promise<void>
-
-
Get a binary
Parameters
-
info: any
The reference stored in your target object
Returns Promise<ReadableStream<any>>
-
-
Parameters
-
accountId: any
Returns object
-
Action: string[]
-
Effect: string
-
Resource: string[]
-
Sid: string
-
-
Parameters
-
deployer: CloudFormationDeployer
Returns object
-
-
Returns number
-
Get service name
Returns string
-
Parameters
-
key: string
-
Default value bucket: string = undefined
Returns any
-
-
Get the service parameters
Returns T
-
Parameters
-
ctx: any
Returns Promise<void>
-
-
Parameters
-
obj: any
-
property: any
-
index: any
-
context: any
-
Default value expire: number = 30
Returns Promise<string>
-
-
Parameters
-
ctx: any
Returns Promise<void>
-
-
Return a webda service
Type parameters
-
T: Service<ServiceParameters>
Parameters
-
service: string
name to retrieve
Returns T
-
-
Parameters
-
key: string
-
Default value action: string = "getObject"
-
Default value params: any = {}
Returns string
-
-
Parameters
-
hash: any
Returns Promise<number>
-
-
Return WebdaCore
Returns Core
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
map: any
Returns void
-
-
Parameters
-
obj: any
Returns BinaryMap
-
-
Init the Binary system routes
Returns void
-
Parameters
-
type: string | symbol
Returns number
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Load the parameters
Parameters
-
params: any
Returns any
-
-
Parameters
-
level: WorkerLogLevel
to log
-
Rest ...args: any[]
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Listen to an event as on(...) would do except that it will be asynchronous
Parameters
-
event: any
-
callback: any
-
Optional queue: string
Name of queue to use, can be undefined, queue name are used to define differents priorities
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
hash: any
-
uuid: any
-
storeName: any
Returns any
-
-
Parameters
-
key: string
-
body: Buffer | Blob | string | ReadableStream
-
Default value metadatas: object = {}
-
Default value bucket: string = undefined
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<string>
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Parameters
-
config: any
new parameters for the service
Returns Promise<void>
-
-
Parameters
-
Optional event: string | symbol
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Resolve parameters Call initRoutes and initBeanRoutes
Returns void
-
Parameters
-
n: number
Returns this
-
-
Parameters
-
targetStore: any
-
object: any
-
property: any
-
file: any
-
metadatas: any
-
Default value index: string = "add"
Returns Promise<any>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Convert an object to JSON using the Webda json filter
Parameters
-
object: any
The object to export
Returns string
The export of the strip object ( removed all attribute with _ )
-
-
Parameters
-
targetStore: any
-
object: any
-
property: any
-
index: any
-
file: any
-
metadatas: any
Returns Promise<any>
-
-
Parameters
-
targetStore: any
-
object: any
-
property: any
-
index: any
-
file: any
-
metadatas: any
Returns Promise<any>
-
-
Returns ModdaDefinition
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
S3Binary handles the storage of binary on a S3 bucket
The structure used for now is /{hash}/data /{hash}/{targetStore}_{uuid} The challenge is stored on the metadata of the data object
It takes parameters bucket: "bucketName" accessKeyId: "" secretAccessKey: "" region: ""
See Binary the general interface