plg_backend_backblaze

package
v0.0.0-...-7330037 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BackblazeCachePath string = "data/cache/tmp/"
	BackblazeCache     AppCache
)

Functions

This section is empty.

Types

type Backblaze

type Backblaze struct {
	Buckets     map[string]string
	ApiUrl      string `json:"apiUrl"`
	DownloadUrl string `json:"downloadUrl"`
	AccountId   string `json:"accountId"`
	Token       string `json:"authorizationToken"`
	// contains filtered or unexported fields
}

func (Backblaze) Cat

func (this Backblaze) Cat(path string) (io.ReadCloser, error)

func (Backblaze) Init

func (this Backblaze) Init(params map[string]string, app *App) (IBackend, error)

func (Backblaze) LoginForm

func (this Backblaze) LoginForm() Form

func (Backblaze) Ls

func (this Backblaze) Ls(path string) ([]os.FileInfo, error)

func (Backblaze) Meta

func (this Backblaze) Meta(path string) Metadata

func (Backblaze) Mkdir

func (this Backblaze) Mkdir(path string) error

func (Backblaze) Mv

func (this Backblaze) Mv(from string, to string) error

func (Backblaze) Rm

func (this Backblaze) Rm(path string) error

func (Backblaze) Save

func (this Backblaze) Save(path string, file io.Reader) error

func (Backblaze) Touch

func (this Backblaze) Touch(path string) error

type BackblazeError

type BackblazeError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Status  int    `json:"status"`
}

type BackblazePath

type BackblazePath struct {
	BucketId string
	Prefix   string
}

Jump to

Keyboard shortcuts

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