mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-27 07:30:27 +08:00
TUN-4847: Allow to list tunnels by prefix name or exclusion prefix name
This commit is contained in:
@@ -25,6 +25,14 @@ func (f *Filter) ByName(name string) {
|
||||
f.queryParams.Set("name", name)
|
||||
}
|
||||
|
||||
func (f *Filter) ByNamePrefix(namePrefix string) {
|
||||
f.queryParams.Set("name_prefix", namePrefix)
|
||||
}
|
||||
|
||||
func (f *Filter) ExcludeNameWithPrefix(excludePrefix string) {
|
||||
f.queryParams.Set("exclude_prefix", excludePrefix)
|
||||
}
|
||||
|
||||
func (f *Filter) NoDeleted() {
|
||||
f.queryParams.Set("is_deleted", "false")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user