Documentation
¶
Index ¶
- type Addition
- type Lark
- func (c *Lark) Config() driver.Config
- func (c *Lark) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (c *Lark) DownloadExportFile(ctx context.Context, fileToken string) (io.Reader, string, error)
- func (c *Lark) Drop(ctx context.Context) error
- func (c *Lark) GetAddition() driver.Additional
- 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 (c *Lark) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (c *Lark) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (c *Lark) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (c *Lark) Other(ctx context.Context, args model.OtherArgs) (interface{}, error)
- func (c *Lark) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (c *Lark) Remove(ctx context.Context, obj model.Obj) error
- func (c *Lark) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type LarkExportCreateResp
- type LarkExportOption
- type LarkExportOptionsResp
- type LarkExportStatusResp
- type LarkExportSubResource
- type TokenCache
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"`
UserAccessToken string `json:"user_access_token" type:"text" help:"optional cached user access token for personal drive access"`
RefreshToken string `json:"refresh_token" type:"text" help:"optional refresh token for user access token auto refresh"`
UserAccessTokenExpiresAt int64 `json:"user_access_token_expires_at" type:"number" help:"user access token expires at unix timestamp"`
RefreshTokenExpiresAt int64 `json:"refresh_token_expires_at" type:"number" help:"refresh token expires at unix timestamp"`
ExternalMode bool `json:"external_mode" type:"bool" help:"external mode"`
TenantUrlPrefix string `json:"tenant_url_prefix" type:"text" help:"tenant url prefix"`
}
type Lark ¶
func (*Lark) DownloadExportFile ¶ added in v3.61.0
func (*Lark) GetAddition ¶
func (c *Lark) GetAddition() driver.Additional
type LarkExportCreateResp ¶ added in v3.61.0
type LarkExportOption ¶ added in v3.61.0
type LarkExportOptionsResp ¶ added in v3.61.0
type LarkExportOptionsResp struct {
Type string `json:"type"`
Formats []LarkExportOption `json:"formats"`
SubResources []LarkExportSubResource `json:"sub_resources,omitempty"`
SubResourceError string `json:"sub_resource_error,omitempty"`
}
type LarkExportStatusResp ¶ added in v3.61.0
type LarkExportStatusResp struct {
Status string `json:"status"`
FileToken string `json:"file_token,omitempty"`
FileSize int `json:"file_size,omitempty"`
JobStatus int `json:"job_status,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
ErrorDetail string `json:"error_detail,omitempty"`
}
type LarkExportSubResource ¶ added in v3.61.0
Click to show internal directories.
Click to hide internal directories.