1package disk 2 3import ( 4 bicloud "github.com/cloudfoundry/bosh-cli/cloud" 5 biconfig "github.com/cloudfoundry/bosh-cli/config" 6 boshlog "github.com/cloudfoundry/bosh-utils/logger" 7) 8 9type ManagerFactory interface { 10 NewManager(bicloud.Cloud) Manager 11} 12 13type managerFactory struct { 14 diskRepo biconfig.DiskRepo 15 logger boshlog.Logger 16} 17 18func NewManagerFactory( 19 diskRepo biconfig.DiskRepo, 20 logger boshlog.Logger, 21) ManagerFactory { 22 return &managerFactory{ 23 diskRepo: diskRepo, 24 logger: logger, 25 } 26} 27 28func (f *managerFactory) NewManager(cloud bicloud.Cloud) Manager { 29 return NewManager(cloud, f.diskRepo, f.logger) 30} 31