Merge lp:~rvb/gwacl/filtering into lp:gwacl
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | 166 |
Merged at revision: | 166 |
Proposed branch: | lp:~rvb/gwacl/filtering |
Merge into: | lp:gwacl |
Diff against target: |
77 lines (+49/-0) 2 files modified
management.go (+22/-0) management_test.go (+27/-0) |
To merge this branch: | bzr merge lp:~rvb/gwacl/filtering |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+173193@code.launchpad.net |
Commit message
Add the ability for ListSpecificHos
To post a comment you must log in.
[1]
type ListSpecificHos tedServicesRequ est struct {
- ServiceNames []string
+ ServiceNames []string
+ ServiceNamePrefix string
}
This is kind of ugly. It's muddying the expected behaviour of tedServices. I think it also falls into the realms of
ListSpecificHos
Jeroen's Swiss Army Knife antipattern.
How about allowing ServiceNames to contain globs? I don't think that
services can have glob pattern characters in them, so it should be
safe (and they can be escaped if necessary anyway).
See http:// golang. org/pkg/ path/#Match
Alternatively, you could split the prefix matching functionality out cesWithPrefix function.
into a separate ListHostedServi