refactor: use log:set for logs and add global support

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-22 00:39:08 -05:00
parent 6eb0bd8c87
commit afe1e8b33c
11 changed files with 212 additions and 26 deletions

View File

@@ -6,14 +6,18 @@ import (
"github.com/dokku/dokku/plugins/common"
)
const MaxSize = "10m"
var (
// DefaultProperties is a map of all valid ps properties with corresponding default property values
DefaultProperties = map[string]string{
"max-size": "",
"vector-sink": "",
}
// GlobalProperties is a map of all valid global logs properties
GlobalProperties = map[string]bool{
"max-size": true,
"vector-sink": true,
}
)