Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + const DOCKER + func GetChaincodePackageBytes(spec *pb.ChaincodeSpec) ([]byte, error) + func GetVMFromName(name string) string + func SetupTestConfig() + func SetupTestLogging() + func VMCProcess(ctxt context.Context, vmtype string, req VMCReqIntf) (interface{}, error) + type Config struct + type CreateImageReq struct + Args []string + AttachStdin bool + AttachStdout bool + Env []string + ID string + Reader io.Reader + type StartImageReq struct + Args []string + AttachStdin bool + AttachStdout bool + Env []string + ID string + type StopImageReq struct + Dontkill bool + Dontremove bool + ID string + Timeout uint + type VM struct + Client *docker.Client + func NewVM() (*VM, error) + func (vm *VM) BuildChaincodeContainer(spec *pb.ChaincodeSpec) ([]byte, error) + func (vm *VM) BuildObccaContainer() error + func (vm *VM) BuildPeerContainer() error + func (vm *VM) GetPeerPackageBytes() (io.Reader, error) + func (vm *VM) ListImages(context context.Context) error + type VMCReqIntf interface + type VMCResp struct + Err error + Resp interface{} + type VMController struct