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

« back to all changes in this revision

Viewing changes to state/api/export_test.go

Sequestering server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package api
2
 
 
3
 
import "launchpad.net/juju-core/rpc"
4
 
 
5
 
var (
6
 
        ServerError       = serverError
7
 
        ErrBadId          = errBadId
8
 
        ErrBadCreds       = errBadCreds
9
 
        ErrPerm           = errPerm
10
 
        ErrNotLoggedIn    = errNotLoggedIn
11
 
        ErrUnknownWatcher = errUnknownWatcher
12
 
        ErrStoppedWatcher = errStoppedWatcher
13
 
)
14
 
 
15
 
// RPCClient returns the RPC client for the state, so that testing
16
 
// functions can tickle parts of the API that the conventional entry
17
 
// points don't reach.
18
 
func RPCClient(st *State) *rpc.Client {
19
 
        return st.client
20
 
}