Add README section for GCS Fs

This commit is contained in:
Michalis Kargakis 2021-12-22 11:03:34 +01:00
parent 21b977b251
commit 68b71565dd
No known key found for this signature in database
GPG Key ID: 1B2F98E9CC581893
1 changed files with 12 additions and 0 deletions

View File

@ -259,6 +259,18 @@ system using InMemoryFile.
Afero has experimental support for secure file transfer protocol (sftp). Which can Afero has experimental support for secure file transfer protocol (sftp). Which can
be used to perform file operations over a encrypted channel. be used to perform file operations over a encrypted channel.
### GCSFs
Afero has experimental support for Google Cloud Storage (GCS). You can either set the
`GOOGLE_APPLICATION_CREDENTIALS_JSON` env variable to your JSON credentials or use `opts` in
`NewGcsFS` to configure access to your GCS bucket.
Some known limitations of the existing implementation:
* No Chmod support - The GCS ACL could probably be mapped to *nix style permissions but that would add another level of complexity and is ignored in this version.
* No Chtimes support - Could be simulated with attributes (gcs a/m-times are set implicitly) but that's is left for another version.
* Not thread safe - Also assumes all file operations are done through the same instance of the GcsFs. File operations between different GcsFs instances are not guaranteed to be consistent.
## Filtering Backends ## Filtering Backends
### BasePathFs ### BasePathFs