lark

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	// Usually one of two
	driver.RootPath
	// define other
	AppId           string `json:"app_id" type:"text" help:"app id"`
	AppSecret       string `json:"app_secret" type:"text" help:"app secret"`
	ExternalMode    bool   `json:"external_mode" type:"bool" help:"external mode"`
	TenantUrlPrefix string `json:"tenant_url_prefix" type:"text" help:"tenant url prefix"`
}

type Lark

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

func (*Lark) Config

func (c *Lark) Config() driver.Config

func (*Lark) Copy

func (c *Lark) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*Lark) Drop

func (c *Lark) Drop(ctx context.Context) error

func (*Lark) GetAddition

func (c *Lark) GetAddition() driver.Additional

func (*Lark) Init

func (c *Lark) Init(ctx context.Context) error
func (c *Lark) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*Lark) List

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

func (*Lark) MakeDir

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

func (*Lark) Move

func (c *Lark) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*Lark) Put

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

func (*Lark) Remove

func (c *Lark) Remove(ctx context.Context, obj model.Obj) error

func (*Lark) Rename

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

type TokenCache

type TokenCache struct {
	cache.ICache[string]
}

func (*TokenCache) Get

func (t *TokenCache) Get(_ context.Context, key string) (string, error)

func (*TokenCache) Set

func (t *TokenCache) Set(_ context.Context, key string, value string, expireTime time.Duration) error

Jump to

Keyboard shortcuts

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