rsyslog

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

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 NewState

func NewState(caller base.APICaller) *State

NewState creates a new client-side Rsyslog facade.

func (*State) GetRsyslogConfig

func (st *State) GetRsyslogConfig(agentTag string) (*RsyslogConfig, error)

GetRsyslogConfig returns a RsyslogConfig.

func (*State) SetRsyslogCert

func (st *State) SetRsyslogCert(caCert, caKey string) error

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.

Jump to

Keyboard shortcuts

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