OLD | NEW |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package local | 4 package local |
5 | 5 |
6 import ( | 6 import ( |
7 "fmt" | 7 "fmt" |
8 | 8 |
9 » "launchpad.net/juju-core/errors" | 9 » "github.com/juju/errors" |
| 10 |
10 "launchpad.net/juju-core/instance" | 11 "launchpad.net/juju-core/instance" |
11 "launchpad.net/juju-core/provider/common" | 12 "launchpad.net/juju-core/provider/common" |
12 ) | 13 ) |
13 | 14 |
14 type localInstance struct { | 15 type localInstance struct { |
15 id instance.Id | 16 id instance.Id |
16 env *localEnviron | 17 env *localEnviron |
17 } | 18 } |
18 | 19 |
19 var _ instance.Instance = (*localInstance)(nil) | 20 var _ instance.Instance = (*localInstance)(nil) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 77 |
77 // Ports implements instance.Instance.Ports. | 78 // Ports implements instance.Instance.Ports. |
78 func (inst *localInstance) Ports(machineId string) ([]instance.Port, error) { | 79 func (inst *localInstance) Ports(machineId string) ([]instance.Port, error) { |
79 return nil, nil | 80 return nil, nil |
80 } | 81 } |
81 | 82 |
82 // Add a string representation of the id. | 83 // Add a string representation of the id. |
83 func (inst *localInstance) String() string { | 84 func (inst *localInstance) String() string { |
84 return fmt.Sprintf("inst:%v", inst.id) | 85 return fmt.Sprintf("inst:%v", inst.id) |
85 } | 86 } |
OLD | NEW |