Merge lp://staging/~themue/pyjuju/go-state-remove-relation into lp://staging/pyjuju/go
Proposed by
Frank Mueller
Status: | Merged |
---|---|
Approved by: | Gustavo Niemeyer |
Approved revision: | 165 |
Merged at revision: | 207 |
Proposed branch: | lp://staging/~themue/pyjuju/go-state-remove-relation |
Merge into: | lp://staging/pyjuju/go |
Prerequisite: | lp://staging/~themue/pyjuju/go-state-add-relation |
Diff against target: |
131 lines (+71/-4) 5 files modified
state/export_test.go (+13/-3) state/relation.go (+5/-0) state/state.go (+13/-0) state/state_test.go (+35/-0) state/topology.go (+5/-1) |
To merge this branch: | bzr merge lp://staging/~themue/pyjuju/go-state-remove-relation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+108037@code.staging.launchpad.net |
Description of the change
state: Added the method RemoveRelation() to State.
Relation is now an interface defining the single
method relationKey() to allow a function signature
like today in Python. The implementation is now
named relation and can be accessed via type
assertion.
To post a comment you must log in.
https:/ /codereview. appspot. com/6250076/ diff/1/ state/relation. go
File state/relation.go (right):
https:/ /codereview. appspot. com/6250076/ diff/1/ state/relation. go#newcode52 go:52: relationKey() string
state/relation.
Why is this being turned into an interface that has a single
implementation and no chance of ever being implemented by anyone outside
of this package?
I've read the description of the CL, but it still makes no sense to me.
https:/ /codereview. appspot. com/6250076/