MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetStorageDetails

Function GetStorageDetails

internal/model/storage.go:99–107  ·  view source on GitHub ↗
(obj Obj)

Source from the content-addressed store, hash-verified

97}
98
99func GetStorageDetails(obj Obj) (*StorageDetails, bool) {
100 if obj, ok := obj.(ObjWithStorageDetails); ok {
101 return obj.GetStorageDetails(), true
102 }
103 if unwrap, ok := obj.(ObjUnwrap); ok {
104 return GetStorageDetails(unwrap.Unwrap())
105 }
106 return nil, false
107}

Callers 5

ListMethod · 0.92
callFSGetMethod · 0.92
toObjRespFunction · 0.92
toObjsRespFunction · 0.92
FsGetFunction · 0.92

Calls 2

GetStorageDetailsMethod · 0.65
UnwrapMethod · 0.65

Tested by

no test coverage detected