~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/apiserver/client/state.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
import (
7
7
        "github.com/juju/names"
 
8
        "github.com/juju/version"
8
9
        "gopkg.in/juju/charm.v6-unstable"
9
10
 
10
11
        "github.com/juju/juju/constraints"
12
13
        "github.com/juju/juju/instance"
13
14
        "github.com/juju/juju/network"
14
15
        "github.com/juju/juju/state"
15
 
        "github.com/juju/juju/version"
 
16
        "github.com/juju/juju/status"
16
17
)
17
18
 
18
19
// Unit represents a state.Unit.
19
20
type Unit interface {
20
 
        state.StatusHistoryGetter
 
21
        status.StatusHistoryGetter
21
22
        Life() state.Life
22
23
        Destroy() (err error)
23
24
        IsPrincipal() bool
24
25
        PublicAddress() (network.Address, error)
25
26
        PrivateAddress() (network.Address, error)
26
27
        Resolve(retryHooks bool) error
27
 
        AgentHistory() state.StatusHistoryGetter
 
28
        AgentHistory() status.StatusHistoryGetter
28
29
}
29
30
 
30
31
// stateInterface contains the state.State methods used in this package,