~mfoord/juju-core/ha-rsyslog-2

« back to all changes in this revision

Viewing changes to state/apiserver/client/client.go

  • Committer: Wayne Witzel III
  • Date: 2014-05-22 14:05:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2737.
  • Revision ID: wayne.witzel@canonical.com-20140522140515-bsr7yv78eh8ku4iv
revert merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        auth      common.Authorizer
37
37
        resources *common.Resources
38
38
        client    *Client
 
39
        dataDir   string
39
40
        // statusSetter provides common methods for updating an entity's provisioning status.
40
41
        statusSetter *common.StatusSetter
41
42
}
46
47
}
47
48
 
48
49
// NewAPI creates a new instance of the Client API.
49
 
func NewAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) *API {
 
50
func NewAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer, datadir string) *API {
50
51
        r := &API{
51
52
                state:        st,
52
53
                auth:         authorizer,
53
54
                resources:    resources,
 
55
                dataDir:      datadir,
54
56
                statusSetter: common.NewStatusSetter(st, common.AuthAlways(true)),
55
57
        }
56
58
        r.client = &Client{