oracle_storage

package module
v0.0.0-...-d3eaf0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 3 Imported by: 0

README

Oracle-Storage

This repository is responsible for managing meta-data storage for our Oracle Ecosystem. This is a temporary repository until we move this storage on chain/onto providers machines. It Implements:

  • Managing the deployment of the AWS S3 buckets used for storing the meta-data and obao files.
  • Implements a simple wrapper around a systems command line to generate obao files from Go.
  • Writes processed meta-data and files to the S3 buckets.

Dependencies

For now, this repository is dependent on the following:

  • bao: The bao library must be accessible from the command line in order to generate obao files.

Building

$ go install .

Usage

Deploy AWS infrastructure with Terraform. Then call this library to generate obao files.

Testing

$ go test oracle_storage.go oracle_storage_test.go

Future Work

Right now, all preprocessing is done through command line invocations. This is not ideal, and should be changed to a contained library.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store(filename string, filesize int64, cid string) error

Takes a file path in, processes it, and returns uploads data to S3.

Types

This section is empty.

Directories

Path Synopsis
A package for updating our Backend state
A package for updating our Backend state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL