export cache

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
docker-18.09
Jess Frazelle 2018-03-02 14:43:57 -05:00
parent 3e90755493
commit b0f34cb8cd
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
1 changed files with 3 additions and 3 deletions

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?