Documentation
¶
Index ¶
- Variables
- type Builder
- type FileBuilder
- type FileSearcher
- type MapBackedCache
- func (m *MapBackedCache) AddPackIndex(ctx context.Context, h arq.ShaHash, pi arq.ArqPackIndex) error
- func (m *MapBackedCache) Build(ctx context.Context) error
- func (m *MapBackedCache) Find(ctx context.Context, oH arq.ShaHash) (PackLocation, error)
- func (m *MapBackedCache) HasPackIndex(ctx context.Context, h arq.ShaHash) (bool, error)
- type PackLocation
- type Searcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyIndexedPack = errors.New("already indexed this pack index") ErrNotFound = errors.New("ErrNotFound") )
View Source
var (
ErrTooManyPacksets = errors.New("ErrTooManyPacksets")
)
Functions ¶
This section is empty.
Types ¶
type FileBuilder ¶
type FileBuilder struct {
// contains filtered or unexported fields
}
func NewFileBuilder ¶
func NewFileBuilder(workdir string) *FileBuilder
func (*FileBuilder) AddPackIndex ¶
func (f *FileBuilder) AddPackIndex(ctx context.Context, h arq.ShaHash, pi arq.ArqPackIndex) error
func (*FileBuilder) HasPackIndex ¶
type FileSearcher ¶
type FileSearcher struct {
// contains filtered or unexported fields
}
func NewFileSearcher ¶
func NewFileSearcher(workdir string) *FileSearcher
func (*FileSearcher) Close ¶
func (fs *FileSearcher) Close()
func (*FileSearcher) Find ¶
func (fs *FileSearcher) Find(ctx context.Context, h arq.ShaHash) (PackLocation, error)
type MapBackedCache ¶
type MapBackedCache struct {
// contains filtered or unexported fields
}
func NewMapBackedCache ¶
func NewMapBackedCache() *MapBackedCache
func (*MapBackedCache) AddPackIndex ¶
func (m *MapBackedCache) AddPackIndex(ctx context.Context, h arq.ShaHash, pi arq.ArqPackIndex) error
func (*MapBackedCache) Find ¶
func (m *MapBackedCache) Find(ctx context.Context, oH arq.ShaHash) (PackLocation, error)
func (*MapBackedCache) HasPackIndex ¶
Click to show internal directories.
Click to hide internal directories.