(ctx context.Context, uuid string)
| 85 | } |
| 86 | |
| 87 | func (i *imlCommitService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) { |
| 88 | r, err := i.store.Get(ctx, uuid) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | |
| 93 | return newCommit(r), nil |
| 94 | } |
| 95 | |
| 96 | func (i *imlCommitService[T]) Latest(ctx context.Context, target string, key string) (*Commit[T], error) { |
| 97 | list, err := i.store.Latest(ctx, key, target) |