~rogpeppe/juju-core/323-machineagent-api-client

« back to all changes in this revision

Viewing changes to instance/instance.go

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-06-17 22:06:54 UTC
  • mfrom: (1274.3.10 instance-id)
  • Revision ID: tarmac-20130617220654-1d7y34f00629h8cv
[r=thumper] Move state.InstanceId to instance.Id

Very mechanical change, just imports, and occasional variable renames.

https://codereview.appspot.com/10325043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import (
7
7
        "errors"
8
8
 
9
 
        "launchpad.net/juju-core/state"
10
9
        "launchpad.net/juju-core/state/api/params"
11
10
)
12
11
 
13
12
var ErrNoDNSName = errors.New("DNS name not allocated")
14
13
 
 
14
// An instance Id is a provider-specific identifier associated with an
 
15
// instance (physical or virtual machine allocated in the provider).
 
16
type Id string
 
17
 
15
18
// Instance represents the the realization of a machine in state.
16
19
type Instance interface {
17
20
        // Id returns a provider-generated identifier for the Instance.
18
 
        Id() state.InstanceId
 
21
        Id() Id
19
22
 
20
23
        // DNSName returns the DNS name for the instance.
21
24
        // If the name is not yet allocated, it will return