filestore

package
v0.0.0-...-5f2badd Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package filestore will be used to store bash commands as txt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Handler

type S3Handler struct {
	Session *session.Session
	Bucket  string
}

S3Handler handles S3 sessions

func GetHandler

func GetHandler() (S3Handler, error)

GetHandler connects user to S3 session and creates Handler

func (S3Handler) ReadFile

func (h S3Handler) ReadFile(os string, uuid string) (string, error)

ReadFile takes S3 session and with key Reads file

func (S3Handler) UploadFile

func (h S3Handler) UploadFile(os string, uuid string, body string) error

UploadFile takes S3 session and key/value for file and stores in Bucket

Jump to

Keyboard shortcuts

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