appmanager: support init::postInstall
diff --git a/appmanager/actions.go b/appmanager/actions.go
index 88d2551..65fb061 100644
--- a/appmanager/actions.go
+++ b/appmanager/actions.go
@@ -16,6 +16,20 @@
Actions []Action `yaml:"actions"`
}
+type CallAction struct {
+ App string `yaml:"app"`
+ Action string `yaml:"action"`
+ Args map[string]interface{} `yaml:"args"`
+}
+
+type PostInstall struct {
+ CallAction []CallAction `yaml:"callAction"`
+}
+
+type Init struct {
+ PostInstall PostInstall `yaml:"postInstall"`
+}
+
func FromYaml(str string, out interface{}) error {
return yaml.Unmarshal([]byte(str), out)
}