(client Client, product string, must bool)
| 59 | } |
| 60 | |
| 61 | func 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 | |
| 73 | type Store struct { |
| 74 | client Client |
no test coverage detected