OLD | NEW |
1 // Copyright 2012, 2013 Canonical Ltd. | 1 // Copyright 2012, 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package api | 4 package api |
5 | 5 |
6 import ( | 6 import ( |
7 "code.google.com/p/go.net/websocket" | 7 "code.google.com/p/go.net/websocket" |
8 "crypto/tls" | 8 "crypto/tls" |
9 "crypto/x509" | 9 "crypto/x509" |
10 "launchpad.net/juju-core/cert" | 10 "launchpad.net/juju-core/cert" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 func (s *State) Close() error { | 100 func (s *State) Close() error { |
101 return s.client.Close() | 101 return s.client.Close() |
102 } | 102 } |
103 | 103 |
104 // RPCClient returns the RPC client for the state, so that testing | 104 // RPCClient returns the RPC client for the state, so that testing |
105 // functions can tickle parts of the API that the conventional entry | 105 // functions can tickle parts of the API that the conventional entry |
106 // points don't reach. This is exported for testing purposes only. | 106 // points don't reach. This is exported for testing purposes only. |
107 func (s *State) RPCClient() *rpc.Conn { | 107 func (s *State) RPCClient() *rpc.Conn { |
108 return s.client | 108 return s.client |
109 } | 109 } |
OLD | NEW |