upload

package
v0.0.0-...-a9bd8d8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name           = "upload"
	DownloadCached = path.DEFAULT_PATH_BACK_UPCACHE + "/download"
	BackUpFilePath = path.DEFAULT_PATH_BACK_UPCACHE + "/encrypt/backup.zip"
	Type           = plugin.BCallBack
)

Variables

Functions

func InitCosElement

func InitCosElement(u *Upload)

func New

func New() plugin.Plugin

Types

type CosElement

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

func (*CosElement) Delete

func (c *CosElement) Delete(fileName string) error

func (*CosElement) Download

func (c *CosElement) Download(fileName string) ([]byte, error)

func (*CosElement) Push

func (c *CosElement) Push(path string) error

func (*CosElement) Search

func (c *CosElement) Search()

type Upload

type Upload struct {
	plugin.Plugin
	Name    string
	Type    plugin.Type
	Support []uint32
	// contains filtered or unexported fields
}

func (*Upload) Caller

func (u *Upload) Caller(s plugin.Single)

func (*Upload) GetName

func (u *Upload) GetName() string

func (*Upload) GetSupport

func (u *Upload) GetSupport() []uint32

func (*Upload) GetType

func (u *Upload) GetType() plugin.Type

func (*Upload) SetSource

func (u *Upload) SetSource(source *plugin.Source)

func (*Upload) Start

func (u *Upload) Start(args []string)

Start 启动函数

Jump to

Keyboard shortcuts

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