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

Function GetProvider

internal/model/obj.go:178–189  ·  view source on GitHub ↗
(obj Obj)

Source from the content-addressed store, hash-verified

176}
177
178func GetProvider(obj Obj) (string, bool) {
179 for {
180 switch o := obj.(type) {
181 case ObjWithProvider:
182 return o.GetProvider(), true
183 case ObjUnwrap:
184 obj = o.Unwrap()
185 default:
186 return "unknown", false
187 }
188 }
189}
190
191// Merge
192func NewObjMerge() *ObjMerge {

Callers 3

buildFSLinkInfoFunction · 0.92
buildFSGetRawURLFunction · 0.92
FsGetFunction · 0.92

Calls 2

GetProviderMethod · 0.65
UnwrapMethod · 0.65

Tested by

no test coverage detected