featfeat: add ability to specify a custom app.json path

This commit is contained in:
Jose Diaz-Gonzalez
2021-03-21 21:47:08 -04:00
parent c3ece32145
commit a6113f88e7
8 changed files with 277 additions and 4 deletions

View File

@@ -6,6 +6,18 @@ import (
"github.com/dokku/dokku/plugins/common"
)
var (
// DefaultProperties is a map of all valid network properties with corresponding default property values
DefaultProperties = map[string]string{
"appjson-path": "",
}
// GlobalProperties is a map of all valid global network properties
GlobalProperties = map[string]bool{
"appjson-path": true,
}
)
// AppJSON is a struct that represents an app.json file as understood by Dokku
type AppJSON struct {
Cron []CronCommand `json:"cron"`