Merge pull request #318 from jessfraz/all-changes

export cache
docker-18.09
Tõnis Tiigi 2018-03-21 10:10:18 -07:00 committed by GitHub
commit a1af6d9037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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?