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: 0

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