(ctx context.Context, target ...string)
| 28 | } |
| 29 | |
| 30 | func (i *imlCommitWithKeyService[T]) ListLatest(ctx context.Context, target ...string) ([]*Commit[T], error) { |
| 31 | list, err := i.store.Latest(ctx, target...) |
| 32 | if err != nil { |
| 33 | return nil, err |
| 34 | } |
| 35 | |
| 36 | return utils.SliceToSlice(list, newCommit[T]), nil |
| 37 | } |
| 38 | |
| 39 | func (i *imlCommitWithKeyService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) { |
| 40 | r, err := i.store.Get(ctx, uuid) |