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

Unified Diff: state/api/uniter/uniter.go

Issue 13381045: api/uniter: APIAddresses call (Closed)
Patch Set: 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 | « state/api/uniter/state_test.go ('k') | state/api/uniter/uniter_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/api/uniter/uniter.go
=== modified file 'state/api/uniter/uniter.go'
--- state/api/uniter/uniter.go 2013-09-09 12:37:00 +0000
+++ state/api/uniter/uniter.go 2013-09-10 16:50:30 +0000
@@ -156,3 +156,13 @@
func (st *State) Environment() (*Environment, error) {
return &Environment{st}, nil
}
+
+// APIAddresses returns the list of addresses used to connect to the API.
+func (st *State) APIAddresses() ([]string, error) {
+ var result params.StringsResult
+ err := st.caller.Call("Uniter", "", "APIAddresses", nil, &result)
+ if err != nil {
+ return nil, err
+ }
+ return result.Result, nil
+}
« no previous file with comments | « state/api/uniter/state_test.go ('k') | state/api/uniter/uniter_test.go » ('j') | no next file with comments »

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