1
// Copyright 2016 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"gopkg.in/macaroon-bakery.v1/httpbakery"
11
NewAPIClient = &newAPIClient
14
// APIClientFnc returns a function that returns the provided apiClient
15
// and can be used to patch the NewAPIClient variable for tests.
16
func APIClientFnc(api apiClient) func(*httpbakery.Client) (apiClient, error) {
17
return func(*httpbakery.Client) (apiClient, error) {