Example #1
0
File: volume.go Project: ACPK/atc
func (vf *volumeFactory) Build(bcVol baggageclaim.Volume) (Volume, error) {
	bcVol.Release(0)

	vol := newVolume(vf.logger, bcVol, vf.clock, vf.db)

	return vol, nil
}
Example #2
0
func (vf *volumeFactory) Build(logger lager.Logger, bcVol baggageclaim.Volume) (Volume, bool, error) {
	bcVol.Release(nil)
	return newVolume(logger, bcVol, vf.clock, vf.db)
}