Documentation
¶
Overview ¶
Package jujuconn implements some convenience methods for making connections to the Juju API.
Index ¶
- func DialController(controller string) (api.Connection, error)
- func DialModel(controller, model string) (api.Connection, error)
- func Init() error
- type Context
- func (ctxt *Context) Close() error
- func (ctxt *Context) ControllerDialer(controller string) (*Dialer, error)
- func (ctxt *Context) DialController(controller string) (api.Connection, error)
- func (ctxt *Context) DialModel(controller, model string) (api.Connection, error)
- func (ctxt *Context) ModelDialer(controller, model string) (*Dialer, error)
- type Dialer
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialController ¶
func DialController(controller string) (api.Connection, error)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContextWithParams ¶
func (*Context) ControllerDialer ¶
func (*Context) DialController ¶
func (ctxt *Context) DialController(controller string) (api.Connection, error)
DialController makes a controller-only connection to the controller with the given name. If the name is empty, the current controller will be used.
func (*Context) DialModel ¶
func (ctxt *Context) DialModel(controller, model string) (api.Connection, error)
DialModel makes an API connection to the given controller and model names. If the controller name is empty, the default controller will be used. If the model name is empty, the default model for the selected controller will be used.
The model name may also be provided as a UUID.
type Params ¶
type Params struct {
BakeryClient *httpbakery.Client
}
Click to show internal directories.
Click to hide internal directories.