Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1506)

Unified Diff: container/kvm/kvm.go

Issue 77930043: Container Manager Interface
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « container/interface.go ('k') | container/kvm/kvm_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: container/kvm/kvm.go
=== modified file 'container/kvm/kvm.go'
--- container/kvm/kvm.go 2014-03-13 01:02:49 +0000
+++ container/kvm/kvm.go 2014-03-19 21:08:58 +0000
@@ -78,7 +78,7 @@
var _ container.Manager = (*containerManager)(nil)
-func (manager *containerManager) StartContainer(
+func (manager *containerManager) CreateContainer(
machineConfig *cloudinit.MachineConfig,
series string,
network *container.NetworkConfig) (instance.Instance, *instance.HardwareCharacteristics, error) {
@@ -125,7 +125,7 @@
return &kvmInstance{kvmContainer, name}, &hardware, nil
}
-func (manager *containerManager) StopContainer(instance instance.Instance) error {
+func (manager *containerManager) DestroyContainer(instance instance.Instance) error {
name := string(instance.Id())
kvmContainer := KvmObjectFactory.New(name)
if err := kvmContainer.Stop(); err != nil {
« no previous file with comments | « container/interface.go ('k') | container/kvm/kvm_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b