MCPcopy
hub / github.com/CodisLabs/codis / LoadTopom

Function LoadTopom

pkg/models/store.go:61–71  ·  view source on GitHub ↗
(client Client, product string, must bool)

Source from the content-addressed store, hash-verified

59}
60
61func LoadTopom(client Client, product string, must bool) (*Topom, error) {
62 b, err := client.Read(LockPath(product), must)
63 if err != nil || b == nil {
64 return nil, err
65 }
66 t := &Topom{}
67 if err := jsonDecode(t, b); err != nil {
68 return nil, err
69 }
70 return t, nil
71}
72
73type Store struct {
74 client Client

Callers 1

LoadTopomMethod · 0.85

Calls 3

LockPathFunction · 0.85
jsonDecodeFunction · 0.85
ReadMethod · 0.65

Tested by

no test coverage detected