plg_backend_backblaze

package
v0.2.2-0...-eaa9271 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BackblazeCachePath = "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 (b Backblaze) Cat(path string) (io.ReadCloser, error)

func (Backblaze) Init

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

func (Backblaze) LoginForm

func (b Backblaze) LoginForm() Form

func (Backblaze) Ls

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

func (Backblaze) Meta

func (b Backblaze) Meta(path string) Metadata

func (Backblaze) Mkdir

func (b Backblaze) Mkdir(path string) error

func (Backblaze) Mv

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

func (Backblaze) Rm

func (b Backblaze) Rm(path string) error

func (Backblaze) Save

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

func (Backblaze) Touch

func (b 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