MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / parseORef

Function parseORef

pkg/service/objectservice/objectservice.go:24–30  ·  view source on GitHub ↗
(oref string)

Source from the content-addressed store, hash-verified

22const ConnContextTimeout = 60 * time.Second
23
24func parseORef(oref string) (*waveobj.ORef, error) {
25 fields := strings.Split(oref, ":")
26 if len(fields) != 2 {
27 return nil, fmt.Errorf("invalid object reference: %q", oref)
28 }
29 return &waveobj.ORef{OType: fields[0], OID: fields[1]}, nil
30}
31
32func (svc *ObjectService) GetObject_Meta() tsgenmeta.MethodMeta {
33 return tsgenmeta.MethodMeta{

Callers 3

GetObjectMethod · 0.85
GetObjectsMethod · 0.85
UpdateObjectMetaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected