MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / UpdateStorage

Function UpdateStorage

internal/db/storage.go:21–23  ·  view source on GitHub ↗

UpdateStorage just update storage in database

(storage *model.Storage)

Source from the content-addressed store, hash-verified

19
20// UpdateStorage just update storage in database
21func UpdateStorage(storage *model.Storage) error {
22 return errors.WithStack(db.Save(storage).Error)
23}
24
25// DeleteStorageById just delete storage from database by id
26func DeleteStorageById(id uint) error {

Callers 7

EnableStorageFunction · 0.92
DisableStorageFunction · 0.92
UpdateStorageFunction · 0.92
saveDriverStorageFunction · 0.92
EnableWebDavProxyFunction · 0.92
FixAliasConfigFunction · 0.92
storage.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected