@augmentedjs/gcp-resource-manager
v0.3.0
Published
Resource Manager for Google Cloud Platform (storage)
Downloads
4
Readme
gcp-resource-manager
Resource Manager for Google Cloud Platform (storage)
API
Table of Contents
GCPStrategy
Extends Strategy
Google Cloud Storage Resource Manager Strategy
Parameters
options
(optional, default{}
)
read
Read a file from storage
Parameters
path
string path or filename
Returns string Returns file contents
write
Write a file to storage
Parameters
Returns string path or filename
exists
Checks if a file exists on storage
Parameters
path
string path or filename
Returns boolean Returns true if exists
createReadStream
Creates a read stream
Parameters
path
string path or filename
Returns ReadStreamHandle Returns a read stream handle
readAll
Reads the contents on a 'directory' in storage
Parameters
path
string path or filename (optional to filter a path prefix)
Returns array Returns an array of files
bucket
Properties
bucket
object GCP Storage Bucket