Documentation
¶
Index ¶
- type Addition
- type Content
- type ErrResp
- type Gitee
- func (d *Gitee) Config() driver.Config
- func (d *Gitee) Drop(ctx context.Context) error
- func (d *Gitee) GetAddition() driver.Additional
- func (d *Gitee) Init(ctx context.Context) error
- func (d *Gitee) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Gitee) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- type Links
- type Object
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
driver.RootPath
Endpoint string `json:"endpoint" type:"string" help:"Gitee API endpoint, default https://gitee.com/api/v5"`
Token string `json:"token" type:"string"`
Owner string `json:"owner" type:"string" required:"true"`
Repo string `json:"repo" type:"string" required:"true"`
Ref string `json:"ref" type:"string" help:"Branch, tag or commit SHA, defaults to repository default branch"`
DownloadProxy string `json:"download_proxy" type:"string" help:"Prefix added before download URLs, e.g. https://mirror.example.com/"`
Cookie string `json:"cookie" type:"string" help:"Cookie returned from user info request"`
}
type Gitee ¶
func (*Gitee) GetAddition ¶
func (d *Gitee) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.