Documentation ¶
Index ¶
- type DockerVM
- func (vm *DockerVM) Deploy(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, ...) error
- func (vm *DockerVM) Destroy(ctxt context.Context, ccid ccintf.CCID, force bool, noprune bool) error
- func (vm *DockerVM) GetVMName(ccid ccintf.CCID) (string, error)
- func (vm *DockerVM) Start(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, ...) error
- func (vm *DockerVM) Stop(ctxt context.Context, ccid ccintf.CCID, timeout uint, dontkill bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerVM ¶
type DockerVM struct {
// contains filtered or unexported fields
}
DockerVM is a vm. It is identified by an image id
func (*DockerVM) Deploy ¶
func (vm *DockerVM) Deploy(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, reader io.Reader) error
Deploy use the reader containing targz to create a docker image for docker inputbuf is tar reader ready for use by docker.Client the stream from end client to peer could directly be this tar stream talk to docker daemon using docker Client and build the image
func (*DockerVM) GetVMName ¶
GetVMName generates the docker image from peer information given the hashcode. This is needed to keep image name's unique in a single host, multi-peer environment (such as a development environment)
Click to show internal directories.
Click to hide internal directories.