MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Get

Method Get

service/universally/commit/iml.go:39–46  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

37}
38
39func (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
48func (i *imlCommitWithKeyService[T]) Latest(ctx context.Context, target string) (*Commit[T], error) {
49 list, err := i.ListLatest(ctx, target)

Callers

nothing calls this directly

Calls 2

newCommitFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected