utils

package
v0.0.0-...-f40bd46 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultSignal

func GetDefaultSignal(sigString string) syscall.Signal

GetDefaultSignal returns default signals for Keepalived.

func HasSigNumSupport

func HasSigNumSupport(version *version.Version) bool

HasSigNumSupport checks if Keepalived supports --signum command.

func HasVRRPScriptStateSupport

func HasVRRPScriptStateSupport(v *version.Version) bool

HasVRRPScriptStateSupport check if Keepalived version supports VRRP Script State in output.

func OpenFileWithRetry

func OpenFileWithRetry(fileName string) (*os.File, error)

OpenFileWithRetry used to open a file if it didn't exist and retry until the max waiting time.

func ParseVersion

func ParseVersion(versionOutput string) (*version.Version, error)

ParseVersion returns keepalived version from keepalived -v command output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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