Documentation
¶
Index ¶
- func GetStorageInfo(ctx context.Context, c *app.RequestContext)
- func SetService(svc *storageapp.Service)
- func SwitchStorage(ctx context.Context, c *app.RequestContext)
- func TestStorageConnection(ctx context.Context, c *app.RequestContext)
- func UpdateStorageConfig(ctx context.Context, c *app.RequestContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStorageInfo ¶
func GetStorageInfo(ctx context.Context, c *app.RequestContext)
GetStorageInfo . @router /admin/storage [GET]
func SwitchStorage ¶
func SwitchStorage(ctx context.Context, c *app.RequestContext)
SwitchStorage . @router /admin/storage/switch [POST]
func TestStorageConnection ¶
func TestStorageConnection(ctx context.Context, c *app.RequestContext)
TestStorageConnection . @router /admin/storage/test/:type [GET]
func UpdateStorageConfig ¶
func UpdateStorageConfig(ctx context.Context, c *app.RequestContext)
UpdateStorageConfig . @router /admin/storage/config [PUT] 支持两种请求形态:
- 旧嵌套(IDL):{type, config:{storage_path/webdav/s3}}
- 扁平(新契约,v0.7.x):请求体即 conf.StorageConfig 同构 JSON (type/storage_path/quota/s3/webdav/ftp/sftp/azureblob/hdfs/onedrive/oss..obs), 服务端整体校验 → Probe → 热切换 → 持久化。IDL thrift 模型将 config 标为 required 会先拒扁平体,故此处先按顶层字段探测分派。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.