diff --git a/client/driver/syslog/collector.go b/client/driver/syslog/collector.go index cb62b72a4..0ecc8385f 100644 --- a/client/driver/syslog/collector.go +++ b/client/driver/syslog/collector.go @@ -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 {