~themue/juju-core/053-env-more-script-friendly

« back to all changes in this revision

Viewing changes to state/api/params/status.go

Merge trunk and resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package params
2
2
 
3
 
// UnitStatus represents the status of the unit or its agent.
4
 
type UnitStatus string
 
3
// Status represents the status of an entity.
 
4
// It could be a unit, machine or its agent.
 
5
type Status string
5
6
 
6
7
const (
7
 
        // The unit is not yet participating in the environment.
8
 
        UnitPending UnitStatus = "pending"
 
8
        // The entity is not yet participating in the environment.
 
9
        StatusPending Status = "pending"
9
10
 
10
11
        // The unit has performed initial setup and is adapting itself to
11
 
        // the environment.
12
 
        UnitInstalled UnitStatus = "installed"
13
 
 
14
 
        // The unit is actively participating in the environment.
15
 
        UnitStarted UnitStatus = "started"
16
 
 
17
 
        // The unit's agent will perform no further action, other than to
18
 
        // set the unit to Dead at a suitable moment.
19
 
        UnitStopped UnitStatus = "stopped"
20
 
 
21
 
        // The unit requires human intervention in order to operate
22
 
        // correctly.
23
 
        UnitError UnitStatus = "error"
24
 
 
25
 
        // The unit agent ought to be signalling activity, but it cannot
26
 
        // be detected.
27
 
        UnitDown UnitStatus = "down"
28
 
)
29
 
 
30
 
// MachineStatus represents the status of the machine or its agent.
31
 
type MachineStatus string
32
 
 
33
 
const (
34
 
        // The machine is not yet participating in the environment.
35
 
        MachinePending MachineStatus = "pending"
36
 
 
37
 
        // The machine is actively participating in the environment.
38
 
        MachineStarted MachineStatus = "started"
39
 
 
40
 
        // The machine's agent will perform no further action, other than
41
 
        // to set the machine to Dead at a suitable moment.
42
 
        MachineStopped MachineStatus = "stopped"
43
 
 
44
 
        // The machine requires human intervention in order to operate
45
 
        // correctly.
46
 
 
47
 
        MachineError MachineStatus = "error"
48
 
        // The machine agent ought to be signalling activity, but it cannot
49
 
        // be detected.
50
 
        MachineDown MachineStatus = "down"
 
12
        // the environment. Not applicable to machines.
 
13
        StatusInstalled Status = "installed"
 
14
 
 
15
        // The entity is actively participating in the environment.
 
16
        StatusStarted Status = "started"
 
17
 
 
18
        // The entity's agent will perform no further action, other than
 
19
        // to set the unit to Dead at a suitable moment.
 
20
        StatusStopped Status = "stopped"
 
21
 
 
22
        // The entity requires human intervention in order to operate
 
23
        // correctly.
 
24
        StatusError Status = "error"
 
25
 
 
26
        // The entity ought to be signalling activity, but it cannot be
 
27
        // detected.
 
28
        StatusDown Status = "down"
51
29
)