alist

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlistLoginFailed = errors.New("failed to login to Alist")
)

Functions

This section is empty.

Types

type Alist

type Alist struct{}

func (*Alist) Delete

func (a *Alist) Delete(ctx context.Context, detail *types.StorageDetail) error

func (*Alist) GetFile

func (a *Alist) GetFile(ctx context.Context, detail *types.StorageDetail) ([]byte, error)

func (*Alist) Init

func (a *Alist) Init()

func (*Alist) Save

func (a *Alist) Save(ctx context.Context, filePath string, storagePath string) (*types.StorageDetail, error)

type FsFormResponse

type FsFormResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type FsGetResponse

type FsGetResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		Name   string `json:"name"`
		Sign   string `json:"sign"`
		RawUrl string `json:"raw_url"`
	}
}

type FsRemoveResponse

type FsRemoveResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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