_189

package
v3.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: AGPL-3.0 Imports: 31 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"`
	Cookie   string `json:"cookie" help:"Fill in the cookie if need captcha"`
	driver.RootID
}

type AppConf added in v3.17.0

type AppConf struct {
	Data struct {
		AccountType     string `json:"accountType"`
		AgreementCheck  string `json:"agreementCheck"`
		AppKey          string `json:"appKey"`
		ClientType      int    `json:"clientType"`
		IsOauth2        bool   `json:"isOauth2"`
		LoginSort       string `json:"loginSort"`
		MailSuffix      string `json:"mailSuffix"`
		PageKey         string `json:"pageKey"`
		ParamId         string `json:"paramId"`
		RegReturnUrl    string `json:"regReturnUrl"`
		ReqId           string `json:"reqId"`
		ReturnUrl       string `json:"returnUrl"`
		ShowFeedback    string `json:"showFeedback"`
		ShowPwSaveName  string `json:"showPwSaveName"`
		ShowQrSaveName  string `json:"showQrSaveName"`
		ShowSmsSaveName string `json:"showSmsSaveName"`
		Sso             string `json:"sso"`
	} `json:"data"`
	Msg    string `json:"msg"`
	Result string `json:"result"`
}

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) 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 EncryptConf added in v3.17.0

type EncryptConf struct {
	Result int `json:"result"`
	Data   struct {
		UpSmsOn   string `json:"upSmsOn"`
		Pre       string `json:"pre"`
		PreDomain string `json:"preDomain"`
		PubKey    string `json:"pubKey"`
	} `json:"data"`
}

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