mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-03 04:48:55 +01:00
use optional and default feature of yaml-config
This commit is contained in:
parent
fbb8a25320
commit
e2bf557d17
@ -54,7 +54,7 @@ type Pruning struct {
|
|||||||
|
|
||||||
type Global struct {
|
type Global struct {
|
||||||
Logging []LoggingOutletEnum `yaml:"logging"`
|
Logging []LoggingOutletEnum `yaml:"logging"`
|
||||||
Monitoring []MonitoringEnum `yaml:"monitoring"`
|
Monitoring []MonitoringEnum `yaml:"monitoring,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConnectEnum struct {
|
type ConnectEnum struct {
|
||||||
@ -127,10 +127,10 @@ type SyslogLoggingOutlet struct {
|
|||||||
|
|
||||||
type TCPLoggingOutlet struct {
|
type TCPLoggingOutlet struct {
|
||||||
LoggingOutletCommon `yaml:",inline"`
|
LoggingOutletCommon `yaml:",inline"`
|
||||||
Address string `yaml:"address"` //TODO required
|
Address string `yaml:"address"`
|
||||||
Net string `yaml:"net"` //TODO default tcp
|
Net string `yaml:"net,default=tcp"`
|
||||||
RetryInterval time.Duration `yaml:"retry_interval"`
|
RetryInterval time.Duration `yaml:"retry_interval"`
|
||||||
TLS *TCPLoggingOutletTLS
|
TLS *TCPLoggingOutletTLS `yaml:"tls,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TCPLoggingOutletTLS struct {
|
type TCPLoggingOutletTLS struct {
|
||||||
|
@ -18,10 +18,12 @@ jobs:
|
|||||||
count: 10
|
count: 10
|
||||||
- type: grid
|
- type: grid
|
||||||
grid: 1x1h(keep=all) | 24x1h | 14x1d
|
grid: 1x1h(keep=all) | 24x1h | 14x1d
|
||||||
|
keep_bookmarks: all
|
||||||
|
|
||||||
keep_remote:
|
keep_remote:
|
||||||
- type: grid
|
- type: grid
|
||||||
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
||||||
|
keep_bookmarks: all
|
||||||
global:
|
global:
|
||||||
logging:
|
logging:
|
||||||
- type: "stdout"
|
- type: "stdout"
|
||||||
|
@ -12,6 +12,7 @@ global:
|
|||||||
logging:
|
logging:
|
||||||
- type: "tcp"
|
- type: "tcp"
|
||||||
address: "123.123.123.123:1234"
|
address: "123.123.123.123:1234"
|
||||||
|
retry_interval: 10s
|
||||||
tls:
|
tls:
|
||||||
ca: "ca.pem"
|
ca: "ca.pem"
|
||||||
cert: "cert.pem"
|
cert: "cert.pem"
|
||||||
|
Loading…
Reference in New Issue
Block a user