mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 14:35:37 +02:00
[cdc_stream] Add wildcard support to stop command (#30)
Adds support for stuff like cdc_stream stop * or cdc_stream stop user*:dir*.
This commit is contained in:
@@ -194,6 +194,11 @@ class MultiSession {
|
||||
absl::Status StopSession(const std::string& instance_id)
|
||||
ABSL_LOCKS_EXCLUDED(sessions_mutex_);
|
||||
|
||||
// Returns all instance ids that match the given filter. The filter may
|
||||
// contain Windows-style wildcards, e.g. *, foo* or f?o.
|
||||
// Matches are case sensitive.
|
||||
std::vector<std::string> MatchSessions(const std::string& instance_id_filter);
|
||||
|
||||
// Returns true if there is an existing session for |instance_id|.
|
||||
bool HasSession(const std::string& instance_id)
|
||||
ABSL_LOCKS_EXCLUDED(sessions_mutex_);
|
||||
|
||||
Reference in New Issue
Block a user