utils

package
v0.0.0-...-17e39b2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OSInfoCache common.OSInfo

Functions

func DedupAndMergePackageList

func DedupAndMergePackageList(slice1 []common.ListPackage, slice2 []common.ListPackage) []common.ListPackage

DedupAndMergePackageList takes two slices of packages and inserts the values from List2 for Packages that are in both slices

func GetHostname

func GetHostname() string

func GetOSInfo

func GetOSInfo() common.OSInfo

GetOSInfo() parses /etc/os-release and uname for OS information

func HandleError

func HandleError(err error, msg string)

func HandleErrorFatal

func HandleErrorFatal(err error, msg string)

func IsStringInSlice

func IsStringInSlice(target string, slice []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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