macula_cluster_controller (macula v0.20.5)
View SourceMacula Cluster Controller
Application lifecycle management: - Deploy applications from registry - Upgrade to newer versions - Stop running applications - Auto-update policy enforcement
Summary
Functions
Deploy an application (latest version)
Deploy a specific version of an application
Get status of a specific application
Get auto-update policy for an application
List all deployed applications
Remove an application completely
Set auto-update policy for an application
Start the cluster controller
Stop a running application
Upgrade an application to a new version
Types
Functions
Deploy an application (latest version)
Deploy a specific version of an application
Get status of a specific application
-spec get_auto_update_policy(PackageName :: binary()) -> auto_update_policy().
Get auto-update policy for an application
-spec list_deployed_apps() -> [map()].
List all deployed applications
-spec remove_app(PackageName :: binary()) -> ok | {error, not_found}.
Remove an application completely
-spec set_auto_update_policy(PackageName :: binary(), Policy :: auto_update_policy()) -> ok.
Set auto-update policy for an application
Start the cluster controller
-spec stop_app(PackageName :: binary()) -> ok | {error, not_running}.
Stop a running application
Upgrade an application to a new version