Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Unified Diff: juju/api.go

Issue 75600044: Preliminary support for basic juju id commands:
Patch Set: Preliminary support for basic juju id commands: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « environs/manual/provisioner_test.go ('k') | state/api/params/params.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: juju/api.go
=== modified file 'juju/api.go'
--- juju/api.go 2014-03-19 03:18:41 +0000
+++ juju/api.go 2014-03-28 12:28:30 +0000
@@ -18,6 +18,7 @@
"launchpad.net/juju-core/names"
"launchpad.net/juju-core/state/api"
"launchpad.net/juju-core/state/api/keymanager"
+ "launchpad.net/juju-core/state/api/usermanager"
"launchpad.net/juju-core/utils/parallel"
)
@@ -100,6 +101,14 @@
return keymanager.NewClient(st), nil
}
+func NewUserManagerClient(envName string) (*usermanager.Client, error) {
+ st, err := newAPIClient(envName)
+ if err != nil {
+ return nil, err
+ }
+ return usermanager.NewClient(st), nil
+}
+
// NewAPIFromName returns an api.State connected to the API Server for
// the named environment. If envName is "", the default environment will
// be used.
« no previous file with comments | « environs/manual/provisioner_test.go ('k') | state/api/params/params.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b