Sharing the isolationconfig of syslog collector with executor

This commit is contained in:
Diptanu Choudhury
2016-02-10 15:27:40 -08:00
parent c6daed2c00
commit 97ece8595e

View File

@@ -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 {