plg_backend_backblaze

package
v0.0.0-...-612c5e9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	Status      int    `json:"status"`
	// 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