func (c *ClientStoreConnector) Connect(dialOptions ...api.DialOption) (api.Connection, error) {
	opts := c.defaultDialOpts
	for _, f := range dialOptions {
		f(&opts)
	}
	return juju.NewAPIConnection(juju.NewAPIConnectionParams{
		ControllerName: c.config.ControllerName,
		Store:          c.config.ClientStore,
		OpenAPI:        api.Open,
		DialOpts:       opts,
		AccountDetails: c.config.AccountDetails,
		ModelUUID:      c.config.ModelUUID,
	})
}
// Connect returns an api.Connection to the controller / model specified in c's
// config, or an error if there was a problem opening the connection.
Connect returns an api.Connection to the controller / model specified in c's
config, or an error if there was a problem opening the connection.
// Connect returns an api . Connection to the controller / model specified in c ' s // config or an error if there was a problem opening the connection .
func (c *ClientStoreConnector) Connect(dialOptions ...api.DialOption) (api.Connection, error) {
	opts := c.defaultDialOpts
	for _, f := range dialOptions {
		f(&opts)
	}
	return juju.NewAPIConnection(juju.NewAPIConnectionParams{
		ControllerName: c.config.ControllerName,
		Store:          c.config.ClientStore,
		OpenAPI:        api.Open,
		DialOpts:       opts,
		AccountDetails: c.config.AccountDetails,
		ModelUUID:      c.config.ModelUUID,
	})
}
func ( c * ClientStoreConnector ) Connect ( dialOptions ... api . DialOption ) ( api . Connection , error ) { opts := c . defaultDialOpts for _ , f := range dialOptions { f ( & opts ) } return juju . NewAPIConnection ( juju . NewAPIConnectionParams { ControllerName : c . config . ControllerName , Store : c . config . ClientStore , OpenAPI : api . Open , DialOpts : opts , AccountDetails : c . config . AccountDetails , ModelUUID : c . config . ModelUUID , } ) }
Connect returns an api.Connection to the controller / model specified in c's
config, or an error if there was a problem opening the connection.
Connect returns an api . Connection to the controller / model specified in c ' s config or an error if there was a problem opening the connection .