mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Sharing the isolationconfig of syslog collector with executor
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/hashicorp/nomad/client/allocdir"
|
||||
"github.com/hashicorp/nomad/client/driver/executor"
|
||||
"github.com/hashicorp/nomad/client/driver/logrotator"
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
"github.com/mcuadros/go-syslog"
|
||||
@@ -38,7 +39,7 @@ type LogCollectorContext struct {
|
||||
// SyslogCollectorState holds the address and islation information of a launched
|
||||
// syslog server
|
||||
type SyslogCollectorState struct {
|
||||
IsolationConfig *IsolationConfig
|
||||
IsolationConfig *executor.IsolationConfig
|
||||
Addr string
|
||||
}
|
||||
|
||||
@@ -50,10 +51,6 @@ type LogCollector interface {
|
||||
UpdateLogConfig(logConfig *structs.LogConfig) error
|
||||
}
|
||||
|
||||
// IsolationConfig has the cgroup related information of a syslog server
|
||||
type IsolationConfig struct {
|
||||
}
|
||||
|
||||
// SyslogCollector is a LogCollector which starts a syslog server and does
|
||||
// rotation to incoming stream
|
||||
type SyslogCollector struct {
|
||||
|
||||
Reference in New Issue
Block a user