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

Method Meta

drive/script/index.go:98–111  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

96}
97
98func (sd *ScriptDrive) Meta(ctx context.Context) (types.DriveMeta, error) {
99 vm, e := sd.pool.Get(ctx)
100 if e != nil {
101 return types.DriveMeta{}, e
102 }
103 defer func() { _ = sd.pool.Return(context.Background(), vm) }()
104 v, e := sd.call(ctx, vm, "meta", s.NewContext(vm, ctx))
105 r := types.DriveMeta{}
106 if e != nil {
107 return r, nil
108 }
109 v.ParseInto(&r)
110 return r, nil
111}
112
113func (sd *ScriptDrive) Get(ctx context.Context, path string) (types.IEntry, error) {
114 vm, e := sd.pool.Get(ctx)

Callers

nothing calls this directly

Calls 4

callMethod · 0.95
ReturnMethod · 0.80
ParseIntoMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected