clide

package
v0.0.0-...-e881178 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URL

func URL(item stow.Item) string

URL return the URL string of an item

Types

type File

type File struct {
	Filename string
	URL      string
}

File represents a file on a cloud storage provider

func DownloadFiles

func DownloadFiles(location stow.Location, destination string, files []string, logger ProgressPrinter) ([]File, error)

DownloadFiles download files on a stow.Location. It may creates the destination if not exists

func UploadFiles

func UploadFiles(location stow.Location, destination string, files []string, logger ProgressPrinter) ([]File, error)

UploadFiles upload files on a stow.Location. It may creates the destination if not exists

type ProgressPrinter

type ProgressPrinter func(string, ...interface{}) (int, error)

ProgressPrinter is a type used to print progression

Jump to

Keyboard shortcuts

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