(ctx context.Context, uuid string)
| 37 | } |
| 38 | |
| 39 | func (i *imlCommitWithKeyService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) { |
| 40 | r, err := i.store.Get(ctx, uuid) |
| 41 | if err != nil { |
| 42 | return nil, err |
| 43 | } |
| 44 | |
| 45 | return newCommit(r), nil |
| 46 | } |
| 47 | |
| 48 | func (i *imlCommitWithKeyService[T]) Latest(ctx context.Context, target string) (*Commit[T], error) { |
| 49 | list, err := i.ListLatest(ctx, target) |