Documentation
¶
Index ¶
- type RsyslogAPI
- func (api *RsyslogAPI) GetRsyslogConfig(args params.Entities) (params.RsyslogConfigResults, error)
- func (api *RsyslogAPI) SetRsyslogCert(args params.SetRsyslogCertParams) (params.ErrorResult, error)
- func (api *RsyslogAPI) WatchForRsyslogChanges(args params.Entities) (params.NotifyWatchResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsyslogAPI ¶
type RsyslogAPI struct { *common.EnvironWatcher StateAddresser *common.StateAddresser // contains filtered or unexported fields }
RsyslogAPI implements the API used by the rsyslog worker.
func NewRsyslogAPI ¶
func NewRsyslogAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*RsyslogAPI, error)
NewRsyslogAPI creates a new instance of the Rsyslog API.
func (*RsyslogAPI) GetRsyslogConfig ¶
func (api *RsyslogAPI) GetRsyslogConfig(args params.Entities) (params.RsyslogConfigResults, error)
GetRsyslogConfig returns a RsyslogConfigResult.
func (*RsyslogAPI) SetRsyslogCert ¶
func (api *RsyslogAPI) SetRsyslogCert(args params.SetRsyslogCertParams) (params.ErrorResult, error)
SetRsyslogCert sets the rsyslog CACert.
func (*RsyslogAPI) WatchForRsyslogChanges ¶
func (api *RsyslogAPI) WatchForRsyslogChanges(args params.Entities) (params.NotifyWatchResults, error)
WatchForRsyslogChanges starts a watcher to track if there are changes that require we update the rsyslog.d configurations for a machine and/or unit.
Click to show internal directories.
Click to hide internal directories.