0.3.0 • Published 2 years ago

@augmentedjs/gcp-resource-manager v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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

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

Returns boolean Returns true if exists

createReadStream

Creates a read stream

Parameters

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
0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago