Categorygithub.com/dave-meyer/GoStorage
repository
0.0.0-20230727051433-2e65e16108e4
Repository: https://github.com/dave-meyer/gostorage.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

GoStorage

Info

This project serves as a unified abstraction layer for cloud storage services and can be used within any Go programs to access the storage services from the following providers:

  • Google Cloud Storage

  • Amazon S3

Requirements

aws-credentials.yaml:

labRole: "<FUNCTION_USER_GROUP>"
aws_access_key_id: "<ACCESS_KEY_ID>"
aws_secret_access_key: "<SECRET_ACCESS_KEY>"
aws_session_token: "<SESSION_TOKEN>"

Info: When using this library in combination with the AWSAcademy course labRole will most likely be RoleUser.

gcp-credentials.yaml:

{
  "type": "service_account",
  "project_id": "<PROJECT_ID>",
  "private_key_id": "<PRIVATE_KEY_ID>",
  "private_key": "-----BEGIN PRIVATE KEY-----<PRIVATE_KEY>-----END PRIVATE KEY-----\n"
}

For more information how to retrieve the information needed for this file, see: Google Cloud

Project Structure

The structure for a project using GoStorage should look something like this.

.
├── aws-credentials.yaml
├── gcp-credentials.yaml
├── code
│   ├── ...