|
|
|
@ -53,8 +53,7 @@ type UserConfig struct {
|
|
|
|
|
// OS determines what defaults are set for opening files and links
|
|
|
|
|
OS OSConfig `yaml:"oS,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Update is currently not being used, but like lazydocker, it may be used down
|
|
|
|
|
// the line to help you update automatically.
|
|
|
|
|
// UpdateConfig determines what the default settings are for updating the ui
|
|
|
|
|
Update UpdateConfig `yaml:"update,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Stats determines how long lazydocker will gather container stats for, and
|
|
|
|
@ -191,10 +190,21 @@ type OSConfig struct {
|
|
|
|
|
OpenLinkCommand string `yaml:"openLinkCommand,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UpdateConfig is currently not being used, but may be used down the line to
|
|
|
|
|
// allow for automatic updates
|
|
|
|
|
// UpdateConfig determines what the default settings are for updating the ui
|
|
|
|
|
//
|
|
|
|
|
// For the RefreshProjectTime, RefreshContainersAndServicesTime and RefreshVolumesTime
|
|
|
|
|
// the application expects a valid duration like: 100ms, 2s, 200ns
|
|
|
|
|
// for docs see: https://golang.org/pkg/time/#ParseDuration
|
|
|
|
|
type UpdateConfig struct {
|
|
|
|
|
Method string `yaml:"method,omitempty"`
|
|
|
|
|
// RefreshProjectTime determines the time betweens updates of the project panel
|
|
|
|
|
RefreshProjectTime string `yaml:"refreshProjectTime,omitempty"`
|
|
|
|
|
|
|
|
|
|
// RefreshContainersAndServicesTime determines the time betweens updates of the containers and services panel
|
|
|
|
|
RefreshContainersAndServicesTime string `yaml:"refreshContainersAndServicesTime,omitempty"`
|
|
|
|
|
|
|
|
|
|
// RefreshVolumesTime determines the time betweens updates of the volumes panel
|
|
|
|
|
RefreshVolumesTime string `yaml:"refreshVolumesTime,omitempty"`
|
|
|
|
|
Method string `yaml:"method,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GraphConfig specifies how to make a graph of recorded container stats
|
|
|
|
@ -346,7 +356,10 @@ func GetDefaultConfig() UserConfig {
|
|
|
|
|
},
|
|
|
|
|
OS: GetPlatformDefaultConfig(),
|
|
|
|
|
Update: UpdateConfig{
|
|
|
|
|
Method: "never",
|
|
|
|
|
RefreshProjectTime: "100ms",
|
|
|
|
|
RefreshContainersAndServicesTime: "100ms",
|
|
|
|
|
RefreshVolumesTime: "100ms",
|
|
|
|
|
Method: "never",
|
|
|
|
|
},
|
|
|
|
|
Stats: StatsConfig{
|
|
|
|
|
MaxDuration: duration,
|
|
|
|
|