// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package container

import (
	"launchpad.net/juju-core/environs/config"
	"launchpad.net/juju-core/instance"
	"launchpad.net/juju-core/state"
	"launchpad.net/juju-core/state/api"
)

// A Container represents a containerized virtual machine.
type Container interface {
	instance.Instance
	Create(
		series, nonce string,
		tools *state.Tools,
		environConfig *config.Config,
		stateInfo *state.Info,
		apiInfo *api.Info) error
	Start() error
	Stop() error
	Destroy() error
}

// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package container

import (
	"launchpad.net/juju-core/environs"
	"launchpad.net/juju-core/environs/config"
	"launchpad.net/juju-core/state"
	"launchpad.net/juju-core/state/api"
)

// A Container represents a containerized virtual machine.
type Container interface {
	Name() string
	Instance() environs.Instance
	Create(
		series, nonce string,
		tools *state.Tools,
		environConfig *config.Config,
		stateInfo *state.Info,
		apiInfo *api.Info) error
	Start() error
	Stop() error
	Destroy() error
}

--- 
+++ 
@@ -4,16 +4,15 @@
 package container
 
 import (
-	"launchpad.net/juju-core/environs"
 	"launchpad.net/juju-core/environs/config"
+	"launchpad.net/juju-core/instance"
 	"launchpad.net/juju-core/state"
 	"launchpad.net/juju-core/state/api"
 )
 
 // A Container represents a containerized virtual machine.
 type Container interface {
-	Name() string
-	Instance() environs.Instance
+	instance.Instance
 	Create(
 		series, nonce string,
 		tools *state.Tools,
Make a Container contain an instance.Instance.