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

Function GetVM

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

Source from the content-addressed store, hash-verified

24}
25
26func GetVM(v any) *VM {
27 switch v := v.(type) {
28 case Context:
29 return v.vm
30 case TaskCtx:
31 return v.vm
32 }
33 return nil
34}
35
36func GetTaskCtx(v any) types.TaskCtx {
37 switch v := v.(type) {

Callers 9

GetMethod · 0.85
SaveMethod · 0.85
MakeDirMethod · 0.85
CopyMethod · 0.85
MoveMethod · 0.85
ListMethod · 0.85
DeleteMethod · 0.85
GetURLMethod · 0.85
GetReaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected