Documentation
¶
Index ¶
- func ClearAVCache()
- func ClearBlocksIAL()
- func ClearDocsIAL()
- func ClearTreeCache()
- func ExistAsset(path string) (ret bool)
- func FilterAssets(filter func(path string, asset *Asset) bool) (ret map[string]*Asset)
- func GetAVData(avID string) (raw []byte, ok bool)
- func GetAVDataInBox(avID, boxID string) (raw []byte, ok bool)
- func GetBlockIAL(id string) (ret map[string]string)
- func GetBlockIALInBox(id, boxID string) (ret map[string]string)
- func GetBlockIALWithBoxFallback(id, boxID string) (ret map[string]string)
- func GetDocIALInBox(p, boxID string) (ret map[string]string)
- func GetTreeData(rootID string) (raw []byte, ok bool)
- func GetTreeDataInBox(rootID, boxID string) (raw []byte, ok bool)
- func LoadAssets()
- func PutBlockIAL(id string, ial map[string]string)
- func PutBlockIALInBox(id, boxID string, ial map[string]string)
- func PutDocIALInBox(p, boxID string, ial map[string]string)
- func RemoveAVData(avID string)
- func RemoveAVDataInBox(avID, boxID string)
- func RemoveAsset(path string)
- func RemoveAssetHash(hash string)
- func RemoveBlockIAL(id string)
- func RemoveBlockIALInBox(id, boxID string)
- func RemoveDocIAL(p string)
- func RemoveDocIALInBox(p, boxID string)
- func RemoveTreeData(rootID string)
- func RemoveTreeDataInBox(rootID, boxID string)
- func SetAVData(avID string, raw []byte)
- func SetAVDataInBox(avID, boxID string, raw []byte)
- func SetAssetHash(hash, path string)
- func SetTreeData(rootID string, raw []byte)
- func SetTreeDataInBox(rootID, boxID string, raw []byte)
- type Asset
- type AssetHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAVCache ¶
func ClearAVCache()
func ClearBlocksIAL ¶
func ClearBlocksIAL()
func ClearDocsIAL ¶
func ClearDocsIAL()
func ClearTreeCache ¶
func ClearTreeCache()
func ExistAsset ¶
func FilterAssets ¶
FilterAssets 根据过滤函数返回符合条件的资源
func GetAVDataInBox ¶
func GetBlockIAL ¶
func GetBlockIALInBox ¶
func GetBlockIALWithBoxFallback ¶
GetBlockIALWithBoxFallback 先查 box-aware key,未命中再回退到 bare key。
写入端存在两套键命名空间:部分路径写 box-aware key(PutBlockIALInBox,用于加密笔记本隔离), 部分历史路径仍写 bare key(PutBlockIAL)。读取端若只查其一会漏掉另一侧的更新,因此这里按 box-aware 优先、bare key 回退的顺序查询,与 treenode.GetDynamicRefText 的回退策略保持一致。
func GetDocIALInBox ¶
func GetTreeData ¶
func GetTreeDataInBox ¶
func LoadAssets ¶
func LoadAssets()
func PutBlockIAL ¶
func PutBlockIALInBox ¶
func PutDocIALInBox ¶
func RemoveAVData ¶
func RemoveAVData(avID string)
func RemoveAVDataInBox ¶
func RemoveAVDataInBox(avID, boxID string)
func RemoveAsset ¶
func RemoveAsset(path string)
func RemoveAssetHash ¶
func RemoveAssetHash(hash string)
func RemoveBlockIAL ¶
func RemoveBlockIAL(id string)
func RemoveBlockIALInBox ¶
func RemoveBlockIALInBox(id, boxID string)
func RemoveDocIAL ¶
func RemoveDocIAL(p string)
func RemoveDocIALInBox ¶
func RemoveDocIALInBox(p, boxID string)
func RemoveTreeData ¶
func RemoveTreeData(rootID string)
func RemoveTreeDataInBox ¶
func RemoveTreeDataInBox(rootID, boxID string)
func SetAVDataInBox ¶
func SetAssetHash ¶
func SetAssetHash(hash, path string)
func SetTreeData ¶
func SetTreeDataInBox ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.