blob: e3d653c0e64741cc21e27e7a34bd5934a09b66de [file] [log] [blame]
Lei YU7f2a2152019-09-16 16:50:18 +08001#pragma once
2
3#include <string>
4
5class AssociationInterface
6{
7 public:
8 virtual ~AssociationInterface() = default;
9
10 /** @brief Create an active association to the
11 * newly active software image
12 *
13 * @param[in] path - The path to create the association to.
14 */
15 virtual void createActiveAssociation(const std::string& path) = 0;
16
17 /** @brief Add the functional association to the
18 * new "running" PSU images
19 *
20 * @param[in] path - The path to add the association to.
21 */
22 virtual void addFunctionalAssociation(const std::string& path) = 0;
23
24 /** @brief Remove the associations from the provided software image path
25 *
26 * @param[in] path - The path to remove the association from.
27 */
28 virtual void removeAssociation(const std::string& path) = 0;
29};