Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRsyslogConfigWorker ¶
func NewRsyslogConfigWorker(st *apirsyslog.State, mode RsyslogMode, tag, namespace string, stateServerAddrs []string) (worker.Worker, error)
NewRsyslogConfigWorker returns a worker.Worker that watches for config changes and updates rsyslog configuration based on changes. The worker will remove the configuration file on teardown.
Types ¶
type RsyslogConfigHandler ¶
type RsyslogConfigHandler struct {
// contains filtered or unexported fields
}
RsyslogConfigHandler implements worker.NotifyWatchHandler, watching environment configuration changes and generating new rsyslog configuration.
func (*RsyslogConfigHandler) Handle ¶
func (h *RsyslogConfigHandler) Handle() error
func (*RsyslogConfigHandler) SetUp ¶
func (h *RsyslogConfigHandler) SetUp() (watcher.NotifyWatcher, error)
func (*RsyslogConfigHandler) TearDown ¶
func (h *RsyslogConfigHandler) TearDown() error
type RsyslogMode ¶
type RsyslogMode int
RsyslogMode describes how to configure rsyslog.
const ( RsyslogModeInvalid RsyslogMode = iota // RsyslogModeForwarding is the mode in which // rsyslog will be configured to forward logging // to state servers. RsyslogModeForwarding // RsyslogModeAccumulate is the mode in which // rsyslog will be configured to accumulate logging // from other machines into an "all-machines.log". RsyslogModeAccumulate )
Click to show internal directories.
Click to hide internal directories.