| 22 | } |
| 23 | |
| 24 | type VMPool struct { |
| 25 | base *VM |
| 26 | config VMPoolConfig |
| 27 | mu sync.Mutex |
| 28 | idle []idleVM |
| 29 | total int |
| 30 | closed bool |
| 31 | changed chan struct{} |
| 32 | stop chan struct{} |
| 33 | stopOnce sync.Once |
| 34 | cleaner sync.WaitGroup |
| 35 | } |
| 36 | |
| 37 | func NewVMPool(baseVM *VM, config *VMPoolConfig) *VMPool { |
| 38 | validateVMPoolConfig(config) |
nothing calls this directly
no outgoing calls
no test coverage detected