rsyslog

package
v0.0.0-...-f19ae85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRsyslogConfigWorker

func NewRsyslogConfigWorker(st *apirsyslog.State, mode RsyslogMode, tag names.Tag, namespace string, stateServerAddrs []string) (worker.Worker, error)

NewRsyslogConfigWorker returns a worker.Worker that uses WatchForRsyslogChanges 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 (*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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL