Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultServerConfig ¶
func DefaultServerConfig(c *gc.C) apiserver.ServerConfig
DefaultServerConfig returns the default configuration for starting a test server.
Types ¶
type Server ¶
Server wraps both the HTTP and API servers needed to test API interactions and simplifies managing their lifecycles.
func NewServer ¶
NewServer returns a new running API server using the given state. The pool may be nil, in which case a pool using the given state will be used.
It returns information suitable for connecting to the state without any authentication information or model tag, and the server that's been started.
func NewServerWithConfig ¶
NewServerWithConfig is like NewServer except that the entire server configuration may be specified (see DefaultServerConfig for a suitable starting point).
Click to show internal directories.
Click to hide internal directories.