func (s *store) CookieJar(controllerName string) (CookieJar, error) {
	if err := ValidateControllerName(controllerName); err != nil {
		return nil, errors.Trace(err)
	}
	path := JujuCookiePath(controllerName)
	jar, err := cookiejar.New(&cookiejar.Options{
		Filename: path,
	})
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &cookieJar{
		path: path,
		Jar:  jar,
	}, nil
}
// CookieJar returns the cookie jar associated with the given controller.
CookieJar returns the cookie jar associated with the given controller.
// CookieJar returns the cookie jar associated with the given controller .
func (s *store) CookieJar(controllerName string) (CookieJar, error) {
	if err := ValidateControllerName(controllerName); err != nil {
		return nil, errors.Trace(err)
	}
	path := JujuCookiePath(controllerName)
	jar, err := cookiejar.New(&cookiejar.Options{
		Filename: path,
	})
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &cookieJar{
		path: path,
		Jar:  jar,
	}, nil
}
func ( s * store ) CookieJar ( controllerName string ) ( CookieJar , error ) { if err := ValidateControllerName ( controllerName ) ; err != nil { return nil , errors . Trace ( err ) } path := JujuCookiePath ( controllerName ) jar , err := cookiejar . New ( & cookiejar . Options { Filename : path , } ) if err != nil { return nil , errors . Trace ( err ) } return & cookieJar { path : path , Jar : jar , } , nil }
CookieJar returns the cookie jar associated with the given controller.
CookieJar returns the cookie jar associated with the given controller .