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

Side by Side Diff: provider/local/instance.go

Issue 93410043: Extract errors package to github.com/juju/errors
Patch Set: Created 9 years, 10 months ago
Left:
Right:
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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

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