storehouse

package
v0.0.0-...-7f05d5b Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressed

type Compressed Storage

Compressed stores data using a specified compression system

func (Compressed) StoreFiles

func (store Compressed) StoreFiles(data *StorageData) error

StoreFiles to a target location in a compressed format

type GoogleCloud

type GoogleCloud struct {
	BucketName string
}

GoogleCloud is the implementation of Google's cloud storage system that uploads data to bucket locations

func (GoogleCloud) Upload

func (cloud GoogleCloud) Upload(data *StorageData) error

Upload uploads data to a specified Google cloud bucket

type Storage

type Storage struct {
	StorageSystem StorageSystem
	Compression   compressor.Compression
}

Storage is the abstraction for specifying operations and formats data will be stored

type StorageData

type StorageData struct {
	Source    string
	Target    string
	TargetDir string
}

StorageData is the data used inside the storehouse when running operations on data Source is the local location of the source data Target is the target archive file location and name

type StorageSystem

type StorageSystem interface {
	Upload(data *StorageData) error
}

StorageSystem is the implementation of the medium to use for storing files and folders

type StoreHouse

type StoreHouse interface {
	StoreFiles(data *StorageData) error
}

StoreHouse is the abstraction for uploading, downloading, and managing files/folders at a specified storage location

Jump to

Keyboard shortcuts

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