9
8
"launchpad.net/juju-core/state/api/common"
10
9
"launchpad.net/juju-core/state/api/params"
13
12
// State provides access to the Machiner API facade.
18
17
// NewState creates a new client-side Machiner facade.
23
22
// machineLife requests the lifecycle of the given machine from the server.
24
23
func (st *State) machineLife(tag string) (params.Life, error) {
29
err := st.caller.Call("Machiner", "", "Life", args, &result)
34
return "", fmt.Errorf("expected one result, got %d", len(result.Results))
42
27
// Machine provides access to methods of a state.Machine through the facade.