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, format func(string) (string, error)) (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) Destroy ¶
Destroy destroys an image
func (*DockerVM) GetVMName ¶
func (vm *DockerVM) GetVMName(ccid ccintf.CCID, format func(string) (string, error)) (string, error)
GetVMName generates the VM name from peer information. It accepts a format function parameter to allow different formatting based on the desired use of the name.
Click to show internal directories.
Click to hide internal directories.