MCPcopy Create free account
hub / github.com/devld/go-drive / GetContext

Function GetContext

script/object_context.go:16–24  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

14}
15
16func GetContext(v any) context.Context {
17 switch v := v.(type) {
18 case Context:
19 return v.v
20 case TaskCtx:
21 return v.v
22 }
23 return nil
24}
25
26func GetVM(v any) *VM {
27 switch v := v.(type) {

Callers 8

vm_newContextWithTimeoutFunction · 0.85
vm_newTaskCtxFunction · 0.85
vm_httpFunction · 0.85
GetMethod · 0.85
MakeDirMethod · 0.85
ListMethod · 0.85
GetURLMethod · 0.85
GetReaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected