MCPcopy
hub / github.com/go-git/go-git / EncodedObjectLookupIter

Struct EncodedObjectLookupIter

plumbing/storer/object.go:124–129  ·  view source on GitHub ↗

EncodedObjectLookupIter implements EncodedObjectIter. It iterates over a series of object hashes and yields their associated objects by retrieving each one from object storage. The retrievals are lazy and only occur when the iterator moves forward with a call to Next(). The EncodedObjectLookupIter

Source from the content-addressed store, hash-verified

122// The EncodedObjectLookupIter must be closed with a call to Close() when it is
123// no longer needed.
124type EncodedObjectLookupIter struct {
125 storage EncodedObjectStorer
126 series []plumbing.Hash
127 t plumbing.ObjectType
128 pos int
129}
130
131// NewEncodedObjectLookupIter returns an object iterator given an object storage
132// and a slice of object hashes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected