cloudLib

package
v0.0.0-...-41bbbd1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFile

type CloudFile struct {
	Id          string
	Path        string
	Cloud       string
	Size        string // Size in mb
	Created     time.Time
	LastChecked time.Time
}

type StorageFunctions

type StorageFunctions interface {
	SendFile(base64File string, fileName string, remotePath string) (createdFile CloudFile, err error)
	GetFile(fileName string, path string) (base64File string, err error)
	List(path string) (files []CloudFile, err error)
}

type StorageFunctionsProxy

type StorageFunctionsProxy struct {
	ObjectId int
	// contains filtered or unexported fields
}

func NewStorageFunctionsProxy

func NewStorageFunctionsProxy(host string, port int, objectId int) *StorageFunctionsProxy

func (StorageFunctionsProxy) Availability

func (sfp StorageFunctionsProxy) Availability() (available bool, err error)

func (StorageFunctionsProxy) Close

func (sfp StorageFunctionsProxy) Close() error

func (StorageFunctionsProxy) GetFile

func (sfp StorageFunctionsProxy) GetFile(fileName string, path string) (file *os.File, err error)

func (StorageFunctionsProxy) List

func (sfp StorageFunctionsProxy) List(path string) (files []CloudFile, err error)

func (StorageFunctionsProxy) Price

func (sfp StorageFunctionsProxy) Price(size float64) (price float64, err error)

func (StorageFunctionsProxy) SendFile

func (sfp StorageFunctionsProxy) SendFile(base64File string, fileName string, path string) (createdFile CloudFile, err error)

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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