Versions in this module Expand all Collapse all v0 v0.0.4 Mar 3, 2021 Changes in this version + const ErrorTypeContentID + const ErrorTypeExtraction + const ErrorTypeFormat + const ErrorTypeSource + type Bundle interface + PosixSourceCommands func() []string + PosixSourceCommandsUsingLocation func(location string) []string + Release func() + SourceCommands func() []string + SourceCommandsUsingLocation func(location string) []string + type Cache interface + Cleanup func() + Exists func(key string) bool + GetInUseItemKeys func() []string + GetPath func(key string) string + Load func(keys []string) error + Put func(key string, extractor Extractor) (string, error) + Release func(key string) error + RootPath func() string + type Extractor interface + Extract func(extractLocation string, fs fs.FileSystem) error + type ProgressCallback func(percentDone float32, timeElapsed time.Duration) + type Provider struct + func NewProvider(bundleStore Cache) *Provider + func (b *Provider) GetBundle(url string) (Bundle, error) + func (b *Provider) GetVersionedBundle(url string, expectedContentID string) (Bundle, error) + func (b *Provider) SetProgressCallback(callback ProgressCallback) + func (b *Provider) SetProgressCallbackRate(rateSeconds int)