GetChaincodePackageBytes creates bytes for docker container generation using the supplied chaincode specification
ExitedFunc is the prototype for the function called when a container exits.
PlatformBuilder implements the Build interface using the platforms package GenerateDockerBuild function. XXX This is a pretty awkward spot for the builder, it should really probably be pushed into the dockercontroller, as it only builds docker images, but, doing so would require contaminating the dockercontroller package with the CDS, which is also undesirable.
Build a tar stream based on the CDS
StartContainerReq - properties for starting a container.
StopContainerReq - properties for stopping a container.
VM is an abstract virtual image for supporting arbitrary virual machines
VMCReq - all requests should implement this interface. The context should be passed and tested at each layer till we stop note that we'd stop on the first method on the stack that does not take context
VMController - manages VMs
. abstract construction of different types of VMs (we only care about Docker for now) . manage lifecycle of VM (start with build, start, stop ... eventually probably need fine grained management)
NewVMController creates a new instance of VMController
WaitContainerReq provides the chaincode ID of the container to wait on and a callback to call upon chaincode termination.
|mock||Code generated by counterfeiter.|