Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsyslogConfig ¶
type RsyslogConfig struct { CACert string CAKey string // Port is only used by state servers as the port to listen on. Port int HostPorts []network.HostPort }
RsyslogConfig holds the values needed for the rsyslog worker
type State ¶
type State struct {
// contains filtered or unexported fields
}
State provides access to the Rsyslog API facade.
func (*State) GetRsyslogConfig ¶
func (st *State) GetRsyslogConfig(agentTag string) (*RsyslogConfig, error)
GetRsyslogConfig returns a RsyslogConfig.
func (*State) SetRsyslogCert ¶
SetRsyslogCert sets the rsyslog CA and Key certificates. The CA cert is used to verify the server's identify and establish a TLS session. The Key is used to allow us to properly regenerate rsyslog server certificates when adding and removing state servers with ensure-availability.
func (*State) WatchForRsyslogChanges ¶
func (st *State) WatchForRsyslogChanges(agentTag string) (watcher.NotifyWatcher, error)
WatchForRsyslogChanges returns a new NotifyWatcher.
Click to show internal directories.
Click to hide internal directories.