rsyslog

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentConfig

func GetCurrentConfig(logger *logger.Logger) (*client.RequestRsyslog, error)

GetCurrentConfig reads the current rsyslog configuration

func GetServiceStatus

func GetServiceStatus(ctx context.Context, logger *logger.Logger, runner *cmdrunner.CommandsRunner) (*client.ServiceStatus, error)

GetServiceStatus returns the current rsyslog service status using systemd package

func RestartService

func RestartService(ctx context.Context, logger *logger.Logger, runner *cmdrunner.CommandsRunner) error

RestartService restarts the rsyslog service and syslog.socket

func ServiceControl

func ServiceControl(ctx context.Context, serviceName string, action client.SubCommandType, logger *logger.Logger, runner *cmdrunner.CommandsRunner) (*client.ServiceStatus, error)

ServiceControl performs service control operations (start/stop/restart/status) For rsyslog, we need to control both rsyslog.service and syslog.socket

func UpdateConfig

func UpdateConfig(ctx context.Context, config *client.RequestRsyslog, logger *logger.Logger, runner *cmdrunner.CommandsRunner) error

UpdateConfig writes new rsyslog configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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