@augmentedjs/gcp-resource-manager

0.3.0 • Public • Published

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

  • path string path or filename
  • data any Data to write
  • p boolean make public (optional, default false)

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

Readme

Keywords

Package Sidebar

Install

npm i @augmentedjs/gcp-resource-manager

Weekly Downloads

0

Version

0.3.0

License

Apache-2.0

Unpacked Size

18.1 kB

Total Files

4

Last publish

Collaborators

  • thedocbwarren
  • kcalpo
  • jtwalker2000
  • mukundanps