Resource Manager for Google Cloud Platform (storage)
npm install @augmentedjs/gcp-resource-managerResource Manager for Google Cloud Platform (storage)
* GCPStrategy
* Parameters
* read
* Parameters
* write
* Parameters
* exists
* Parameters
* createReadStream
* Parameters
* readAll
* Parameters
* bucket
* Properties
Extends Strategy
Google Cloud Storage Resource Manager Strategy
* options (optional, default {})
Read a file from storage
#### Parameters
* path string path or filename
Returns string Returns file contents
Write a file to storage
#### Parameters
* path string path or filename
* data any Data to write
* p boolean make public (optional, default false)
Returns string path or filename
Checks if a file exists on storage
#### Parameters
* path string path or filename
Returns boolean Returns true if exists
Creates a read stream
#### Parameters
* path string path or filename
Returns ReadStreamHandle Returns a read stream handle
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 object GCP Storage Bucket