_189

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: AGPL-3.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz"

Functions

func AesEncrypt

func AesEncrypt(data, key []byte) []byte

func EncodeParam

func EncodeParam(v url.Values) string

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func Random

func Random(v string) string

func RsaEncode

func RsaEncode(origData []byte, j_rsakey string, hex bool) string

Types

type Addition

type Addition struct {
	Username string `json:"username" required:"true"`
	Password string `json:"password" required:"true"`
	driver.RootID
}

type Cloud189

type Cloud189 struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*Cloud189) Config

func (d *Cloud189) Config() driver.Config

func (*Cloud189) Copy

func (d *Cloud189) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Cloud189) Drop

func (d *Cloud189) Drop(ctx context.Context) error

func (*Cloud189) GetAddition

func (d *Cloud189) GetAddition() driver.Additional

func (*Cloud189) Init

func (d *Cloud189) Init(ctx context.Context, storage model.Storage) error
func (d *Cloud189) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*Cloud189) List

func (d *Cloud189) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*Cloud189) MakeDir

func (d *Cloud189) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*Cloud189) Move

func (d *Cloud189) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Cloud189) Put

func (d *Cloud189) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error

func (*Cloud189) Remove

func (d *Cloud189) Remove(ctx context.Context, obj model.Obj) error

func (*Cloud189) Rename

func (d *Cloud189) Rename(ctx context.Context, srcObj model.Obj, newName string) error

type Down

type Down struct {
	ResCode         int    `json:"res_code"`
	ResMessage      string `json:"res_message"`
	FileDownloadUrl string `json:"fileDownloadUrl"`
}

type DownResp

type DownResp struct {
	ResCode         int    `json:"res_code"`
	ResMessage      string `json:"res_message"`
	FileDownloadUrl string `json:"downloadUrl"`
}

type Error

type Error struct {
	ErrorCode string `json:"errorCode"`
	ErrorMsg  string `json:"errorMsg"`
}

type File

type File struct {
	Id         int64  `json:"id"`
	LastOpTime string `json:"lastOpTime"`
	Name       string `json:"name"`
	Size       int64  `json:"size"`
	Icon       struct {
		SmallUrl string `json:"smallUrl"`
	} `json:"icon"`
	Url string `json:"url"`
}

type Files

type Files struct {
	ResCode    int    `json:"res_code"`
	ResMessage string `json:"res_message"`
	FileListAO struct {
		Count      int      `json:"count"`
		FileList   []File   `json:"fileList"`
		FolderList []Folder `json:"folderList"`
	} `json:"fileListAO"`
}

type Folder

type Folder struct {
	Id         int64  `json:"id"`
	LastOpTime string `json:"lastOpTime"`
	Name       string `json:"name"`
}

type LoginResp

type LoginResp struct {
	Msg    string `json:"msg"`
	Result int    `json:"result"`
	ToUrl  string `json:"toUrl"`
}

type Part

type Part struct {
	RequestURL    string `json:"requestURL"`
	RequestHeader string `json:"requestHeader"`
}

type Rsa

type Rsa struct {
	Expire int64  `json:"expire"`
	PkId   string `json:"pkId"`
	PubKey string `json:"pubKey"`
}

type UploadUrlsResp

type UploadUrlsResp struct {
	Code       string          `json:"code"`
	UploadUrls map[string]Part `json:"uploadUrls"`
}

Jump to

Keyboard shortcuts

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