Documentation ¶
Index ¶
- Constants
- Variables
- func CallStorageHooks(typ string, storage driver.Driver)
- func GetDriverInfoMap() map[string][]driver.Item
- func GetDriverNames() []string
- func HandleObjsUpdateHook(parent string, objs []model.Obj)
- func HandleSettingItemHook(item *model.SettingItem) (hasHook bool, err error)
- func RegisterDriver(driver New)
- func RegisterObjsUpdateHook(hook ObjsUpdateHook)
- func RegisterSettingItemHook(key string, hook SettingItemHook)
- func RegisterStorageHook(hook StorageHook)
- type New
- type ObjsUpdateHook
- type SettingItemHook
- type StorageHook
Constants ¶
View Source
const ( WORK = "work" RootName = "root" )
Variables ¶
View Source
var (
ObjsUpdateHooks = make([]ObjsUpdateHook, 0)
)
Functions ¶
func CallStorageHooks ¶
func GetDriverInfoMap ¶
func GetDriverInfoMap() map[string]driver.Info { return driverInfoMap }
func GetDriverNames ¶
func GetDriverNames() []string
func HandleObjsUpdateHook ¶
func HandleSettingItemHook ¶
func HandleSettingItemHook(item *model.SettingItem) (hasHook bool, err error)
func RegisterDriver ¶
func RegisterDriver(driver New)
func RegisterObjsUpdateHook ¶
func RegisterObjsUpdateHook(hook ObjsUpdateHook)
func RegisterSettingItemHook ¶
func RegisterSettingItemHook(key string, hook SettingItemHook)
func RegisterStorageHook ¶
func RegisterStorageHook(hook StorageHook)
Types ¶
type New ¶
func GetDriverNew ¶
Click to show internal directories.
Click to hide internal directories.