local

package
v0.0.0-...-e9fe98c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is a local storage provider.

func NewLocalStorage

func NewLocalStorage(storagePath string, localPath string) *Provider

NewLocalStorage returns a local storage provider.

func (Provider) CollectionRef

func (p Provider) CollectionRef() string

CollectionRef returns the path for the provider.

func (Provider) DownloadFile

func (p Provider) DownloadFile(reference, filename string) error

DownloadFile copies the file from the storage provider.

func (Provider) Kind

func (p Provider) Kind() string

Kind returns the kind of provider.

func (Provider) UploadFile

func (p Provider) UploadFile(filename, reference string) error

UploadFile copies the file to a destination.

Jump to

Keyboard shortcuts

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