~jaywink/juju-core/juju-core

« back to all changes in this revision

Viewing changes to state/api/agent/state.go

  • Committer: Jason Robinson
  • Date: 2013-09-20 18:19:37 UTC
  • mfrom: (1828.2.34 juju-core)
  • Revision ID: mail@jasonrobinson.me-20130920181937-02pl68iuf36v647k
Merged latest

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import (
7
7
        "fmt"
8
8
 
 
9
        "launchpad.net/juju-core/instance"
9
10
        "launchpad.net/juju-core/state/api/common"
10
11
        "launchpad.net/juju-core/state/api/params"
11
12
)
75
76
        return m.doc.Jobs
76
77
}
77
78
 
 
79
// ContainerType returns the type of container hosting this entity.
 
80
// If the entity is not a machine, it returns an empty string.
 
81
func (m *Entity) ContainerType() instance.ContainerType {
 
82
        return m.doc.ContainerType
 
83
}
 
84
 
78
85
// SetPassword sets the password associated with the agent's entity.
79
86
func (m *Entity) SetPassword(password string) error {
80
87
        var results params.ErrorResults