export cache

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-03-02 14:43:57 -05:00
parent 3e90755493
commit b0f34cb8cd

View File

@@ -61,7 +61,7 @@ type Worker struct {
WorkerOpt
CacheManager cache.Manager
SourceManager *source.Manager
cache instructioncache.InstructionCache
Cache instructioncache.InstructionCache
Exporters map[string]exporter.Exporter
ImageSource source.Source
CacheExporter *cacheimport.CacheExporter // TODO: remove
@@ -201,7 +201,7 @@ func NewWorker(opt WorkerOpt) (*Worker, error) {
WorkerOpt: opt,
CacheManager: cm,
SourceManager: sm,
cache: ic,
Cache: ic,
Exporters: exporters,
ImageSource: is,
CacheExporter: ce,
@@ -269,7 +269,7 @@ func (w *Worker) Exporter(name string) (exporter.Exporter, error) {
}
func (w *Worker) InstructionCache() instructioncache.InstructionCache {
return w.cache
return w.Cache
}
// utility function. could be moved to the constructor logic?