@@ -55,7 +55,7 @@ struct EXTERNAL IOCIContainer : virtual public Core::IUnknown {
5555 // @text onContainerStopped
5656 virtual void OnContainerStopped (const string& containerId, const string& name) {}
5757
58- // @brief Notifies failure in container execution
58+ // @brief Notifies failure in container execution, Only triggered for states start, stop, hibernate, wakeup.
5959 // @text onContainerFailed
6060 virtual void OnContainerFailed (const string& containerId, const string& name, uint32_t error) {}
6161
@@ -71,84 +71,84 @@ struct EXTERNAL IOCIContainer : virtual public Core::IUnknown {
7171 /* * Unregister notification interface */
7272 virtual Core::hresult Unregister (INotification *notification) = 0;
7373
74- /* * Provide list of containers */
74+ // @brief Provide list of containers
7575 // @text listContainers
7676 // @param containers - out/json - string
7777 virtual Core::hresult ListContainers (string& containers /* @out @opaque */ , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
7878
79- /* * Get the information about container */
79+ // @brief Get the information about container
8080 // @text getContainerInfo
8181 // @param containerId Identifier of container
8282 virtual Core::hresult GetContainerInfo (const string& containerId , string& info /* @out @opaque */ , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
8383
84- /* * Get the state of container */
84+ // @brief Get the state of container
8585 // @text getContainerState
8686 // @param containerId Identifier of container
8787 virtual Core::hresult GetContainerState (const string& containerId , ContainerState& state /* @out */ , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
8888
89- /* * Start the container from bundle */
89+ // @brief Start the container from bundle
9090 // @text startContainer
9191 // @param containerId Identifier of container
9292 // @param bundlePath path of application bundle
9393 // @param command(optional) command to run in container
9494 // @param westerosSocket(optional) Westeros socket container need to connect
9595 virtual Core::hresult StartContainer (const string& containerId , const string& bundlePath , const string& command , const string& westerosSocket , int32_t & descriptor /* @out */ , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
9696
97- /* * Start the container from dobby specification */
97+ // @brief Start the container from dobby specification
9898 // @text startContainerFromDobbySpec
9999 // @param containerId Identifier of container
100100 // @param dobbySpec dobby specification as json string
101101 // @param command(optional) command to run in container
102102 // @param westerosSocket(optional) Westeros socket container need to connect
103103 virtual Core::hresult StartContainerFromDobbySpec (const string& containerId , const string& dobbySpec , const string& command , const string& westerosSocket , int32_t & descriptor /* @out */ , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
104104
105- /* * Stop the container */
105+ // @brief Stop the container
106106 // @text stopContainer
107107 // @param containerId Identifier of container
108108 // @param force(optional) Metion forceful or graceful termination of container
109109 virtual Core::hresult StopContainer (const string& containerId , bool force , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
110110
111- /* * Pause the container */
111+ // @brief Pause the container
112112 // @text pauseContainer
113113 // @param containerId Identifier of container
114114 virtual Core::hresult PauseContainer (const string& containerId , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
115115
116- /* * Resume the container */
116+ // @brief Resume the container
117117 // @text resumeContainer
118118 // @param containerId Identifier of container
119119 virtual Core::hresult ResumeContainer (const string& containerId , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
120120
121- /* * Hibernate the container */
121+ // @brief Hibernate the container
122122 // @text hibernateContainer
123123 // @param containerId Identifier of container
124124 virtual Core::hresult HibernateContainer (const string& containerId , const string& options , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
125125
126- /* * Wakeup the container */
126+ // @brief Wakeup the container
127127 // @text wakeupContainer
128128 // @param containerId Identifier of container
129129 virtual Core::hresult WakeupContainer (const string& containerId , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
130130
131- /* * Execute the command in container */
131+ // @brief Execute the command in container
132132 // @text executeCommand
133133 // @param containerId Identifier of container
134134 // @param options(optional) options to be passed to command
135135 // @param command command to run in container
136136 virtual Core::hresult ExecuteCommand (const string& containerId , const string& options , const string& command , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
137137
138- /* * update container properties */
138+ // @brief Update container properties
139139 // @text annotate
140140 // @param containerId Identifier of container
141141 // @param key name of property
142142 // @param value property data
143143 virtual Core::hresult Annotate (const string& containerId , const string& key , const string& value , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
144144
145- /* * Remove container property */
145+ // @brief Remove container property
146146 // @text removeAnnotation
147147 // @param containerId Identifier of container
148148 // @param key name of property
149149 virtual Core::hresult RemoveAnnotation (const string& containerId , const string& key , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
150150
151- /* * Mount a path in container */
151+ // @brief Mount a path in container
152152 // @text mount
153153 // @param containerId Identifier of container
154154 // @param source path source to mount
@@ -157,7 +157,7 @@ struct EXTERNAL IOCIContainer : virtual public Core::IUnknown {
157157 // @param options options for mounting
158158 virtual Core::hresult Mount (const string& containerId , const string& source , const string& target , const string& type , const string& options , bool & success /* @out */ , string& errorReason /* @out */ ) = 0;
159159
160- /* * Unmount a path in container */
160+ // @brief Unmount a path in container
161161 // @text unmount
162162 // @param containerId Identifier of container
163163 // @param target path to unmount from container
0 commit comments