setup

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrLoadConfig

func CreateOrLoadConfig(interval string, logdays string) int

CreateOrLoadConfig - Create configuration file and directories

func CreateSystemd

func CreateSystemd(systemdType string, unitText string, name string)

CreateSystemd will create service and timer files

func DeleteSystemd

func DeleteSystemd(service string, key string)

DeleteSystemd function to delete the gdg systemd service or timer

func DisableRtmon

func DisableRtmon()

DisableRtmon will disable rtmon

func DisableSystemd

func DisableSystemd(service string)

DisableSystemd disables the sytemd gdg.timer

func EnableRtmon

func EnableRtmon()

EnableRtmon will enable rtmon logging

func EnableSystemd

func EnableSystemd(service string, key string)

EnableSystemd enables the systemd gdg.timer

Types

type Utility added in v0.9.1

type Utility struct {
	Name      string
	Binary    string
	Path      string
	Arg       string
	Dup       bool
	Supported bool
}

Utility type storing all utility info

func FindSupportedUtilities

func FindSupportedUtilities() []Utility

FindSupportedUtilities returns supported binaries with path

Jump to

Keyboard shortcuts

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