New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
many: abbreviated forms of disconnect #2066
Commits on Apr 18, 2016
-
interfaces: add {Plug,Slot}.Ref
This patch adds two helpers so that it is easy to create a PlugRef from Plug and a SlotRef from Slot. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for d02b967 - Browse repository at this point
Copy the full SHA d02b967View commit details -
This patch adds a structure representing a single connection. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 47a5852 - Browse repository at this point
Copy the full SHA 47a5852View commit details -
interfaces: return list of affected connections and snaps from Discon…
…nect Disconnect supports abbreviated forms where one can disconnect, for example, all the connections affecting a given snap. Since interface manager needs to setup security of all the affected snaps and to forget the persistent state of all the affected connections this information is now provided directly by the Disconnect operation. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 982d086 - Browse repository at this point
Copy the full SHA 982d086View commit details -
overlord/ifacestate: add support for abbreviated disconnect operations
This patch adds support for abbreviated disconnect operations that match the suggestions printed by "$ snap disconnect --help". This also fixes a bug where snapd would crash if any of those abbreviated forms were to be used. Fixes: https://bugs.launchpad.net/snappy/+bug/1571497 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for e7ba90c - Browse repository at this point
Copy the full SHA e7ba90cView commit details
Commits on Sep 28, 2016
-
Merged branch 'fix-lp1571497' of https://github.com/zyga/snapd into d…
…isconnect-short-form.
Configuration menu - View commit details
-
Copy full SHA for 7ddcd7f - Browse repository at this point
Copy the full SHA 7ddcd7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1805ec - Browse repository at this point
Copy the full SHA c1805ecView commit details
Commits on Sep 30, 2016
-
Configuration menu - View commit details
-
Copy full SHA for faf4b63 - Browse repository at this point
Copy the full SHA faf4b63View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec4bcae - Browse repository at this point
Copy the full SHA ec4bcaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b44bb08 - Browse repository at this point
Copy the full SHA b44bb08View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea0ee46 - Browse repository at this point
Copy the full SHA ea0ee46View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9c2293 - Browse repository at this point
Copy the full SHA e9c2293View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9348a - Browse repository at this point
Copy the full SHA 3e9348aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6f36a8 - Browse repository at this point
Copy the full SHA a6f36a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eefa28 - Browse repository at this point
Copy the full SHA 6eefa28View commit details
Commits on Oct 1, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 612cc30 - Browse repository at this point
Copy the full SHA 612cc30View commit details
Commits on Oct 3, 2016
-
Configuration menu - View commit details
-
Copy full SHA for f6101eb - Browse repository at this point
Copy the full SHA f6101ebView commit details -
interfaces: add ResolveDisconnectAll and DisconnectAll
This patch adds a new pair of methods, ResolveDisconnectAll and DisconnectAll that respectively look up a list of connections to sever and disconect a list of connections. DisconnectAll returns a list of names of snaps that were affected by the operation. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1ba25f2 - Browse repository at this point
Copy the full SHA 1ba25f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for aae93f1 - Browse repository at this point
Copy the full SHA aae93f1View commit details -
interfaces: tweak error message in ResolveDisconnectAll
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 853b227 - Browse repository at this point
Copy the full SHA 853b227View commit details -
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fd17380 - Browse repository at this point
Copy the full SHA fd17380View commit details
Commits on Oct 4, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 7b9b6de - Browse repository at this point
Copy the full SHA 7b9b6deView commit details -
interfaces: drop unlocked version of ResolveDisconnectAll
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for fc5233a - Browse repository at this point
Copy the full SHA fc5233aView commit details -
interfaces: don't return anything from DisconnctAll
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 5354595 - Browse repository at this point
Copy the full SHA 5354595View commit details -
interfaces: tweak documentation
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for d496ce0 - Browse repository at this point
Copy the full SHA d496ce0View commit details -
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for dc380e4 - Browse repository at this point
Copy the full SHA dc380e4View commit details -
interfaces: drop wildcard mode on repo.Connected
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1c0ff1f - Browse repository at this point
Copy the full SHA 1c0ff1fView commit details -
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 1a1f189 - Browse repository at this point
Copy the full SHA 1a1f189View commit details -
interfaces: simplify and tweak disconnect methods and tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 9bb858f - Browse repository at this point
Copy the full SHA 9bb858fView commit details -
overlord/interfaces: use new Disconnect/DisconnectAll
This patch changes the interface manager to use the new APIs offered by interfaces.Repository for disconnecting. In particular we no longer obtain snap.Info of the affected snaps from the repository (which can contain stale data). Instead we use the snapstate to fetch the current info). In addition of the fully-spelled-out "disconnect snap:plug snap:slot" we now correctly support "disconnect snap:plug" or "disconnect snap:slot". In those two new forms the snap name can be empty (it then defaults to the core snap). This is thanks to the use of the new DisconnectAll method. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for e34153d - Browse repository at this point
Copy the full SHA e34153dView commit details -
overlord/ifacestate: add more disconnect tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 3f88492 - Browse repository at this point
Copy the full SHA 3f88492View commit details -
daemon: adjust tests after message changes
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for f653e81 - Browse repository at this point
Copy the full SHA f653e81View commit details -
interfaces: be extra paranoid about disconnect dispatch
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 3a3bc02 - Browse repository at this point
Copy the full SHA 3a3bc02View commit details -
overlord/ifacestate: return {Plug,Slot}Ref by value
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Configuration menu - View commit details
-
Copy full SHA for 98e974c - Browse repository at this point
Copy the full SHA 98e974cView commit details