storage

package
v0.0.0-...-e37ae44 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(local_path, listener string, uid, gid int, perms string) error

func GetNodeCopy

func GetNodeCopy(item utils.DataTable, listener string, uid, gid int, perms string) bool

func PutFile

func PutFile(local_path, listener string) error

func RemoveFile

func RemoveFile(local_path, listener string) bool

Types

type Backupper

type Backupper interface {
	Upload(local_path, remote_path string) error
	Download(remote_path, local_path string, uid, gid int, perms, listener string) error
	Remove(remote_path string) bool
}

type GDrive

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

func (*GDrive) Download

func (g *GDrive) Download(remote_path, local_path string, uid, gid int, perms, listener string) error

func (*GDrive) Remove

func (g *GDrive) Remove(remote_path string) bool

func (*GDrive) Upload

func (g *GDrive) Upload(local_path, remote_path string) error

type Keys

type Keys struct {
	AccessKey     string
	SecretKey     string
	SecurityToken string
}

type S3

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

func (*S3) Download

func (s *S3) Download(remote_path, local_path string, uid, gid int, perms, listener string) error

func (*S3) GetS3Config

func (s *S3) GetS3Config() (*s3gof3r.Config, *s3gof3r.Keys)

func (*S3) Remove

func (s *S3) Remove(remote_path string) bool

func (*S3) Upload

func (s *S3) Upload(local_path, remote_path string) error

Jump to

Keyboard shortcuts

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