Documentation
¶
Index ¶
- type Addition
- type BunnyStorage
- func (d *BunnyStorage) Config() driver.Config
- func (d *BunnyStorage) Drop(ctx context.Context) error
- func (d *BunnyStorage) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *BunnyStorage) GetAddition() driver.Additional
- func (d *BunnyStorage) Init(ctx context.Context) error
- func (d *BunnyStorage) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *BunnyStorage) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *BunnyStorage) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *BunnyStorage) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, ...) (model.Obj, error)
- func (d *BunnyStorage) Remove(ctx context.Context, obj model.Obj) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
driver.RootPath
StorageZoneName string `json:"storage_zone_name" required:"true"`
AccessKey string `json:"access_key" required:"true"`
Endpoint string `json:"endpoint" required:"true" default:"storage.bunnycdn.com"`
CDNBaseURL string `json:"cdn_base_url"`
CDNTokenKey string `json:"cdn_token_key"`
CDNTokenMethod string `json:"cdn_token_method" type:"select" options:"sha256,hmac_sha256" default:"sha256"`
CDNTokenIncludeIP bool `json:"cdn_token_include_ip" default:"false"`
SignURLExpire int `json:"sign_url_expire" type:"number" default:"4"`
Placeholder string `json:"placeholder" default:".openlist"`
}
type BunnyStorage ¶
func (*BunnyStorage) Config ¶
func (d *BunnyStorage) Config() driver.Config
func (*BunnyStorage) GetAddition ¶
func (d *BunnyStorage) GetAddition() driver.Additional
func (*BunnyStorage) Put ¶
func (d *BunnyStorage) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error)
Click to show internal directories.
Click to hide internal directories.