Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) (storagecore.Storage, error)
New constructs Dropbox-backed storage using the official SDK. @group Driver Constructors
Example: dropbox storage
fs, _ := dropboxstorage.New(dropboxstorage.Config{
Token: "token",
})
_ = fs
func NewContext ¶
Types ¶
type Config ¶
Config defines a Dropbox-backed storage disk. @group Driver Config
Example: define dropbox storage config
cfg := dropboxstorage.Config{
Token: "token",
}
_ = cfg
Example: define dropbox storage config with all fields
cfg := dropboxstorage.Config{
Token: "token",
Prefix: "uploads", // default: ""
}
_ = cfg
func (Config) DriverName ¶
func (Config) ResolvedConfig ¶
func (c Config) ResolvedConfig() storagecore.ResolvedConfig
Click to show internal directories.
Click to hide internal directories.