common

package module
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: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString

func RandomString(length int) (string, error)

RandomString generates a string with the given length using crypt/rand

Types

type CustomError

type CustomError struct {
	Message string
}

func (*CustomError) Error

func (e *CustomError) Error() string

type ListPackage

type ListPackage struct {
	Name           string
	Source         string
	Version        string
	Upgradeable    bool
	UpgradeableTo  string
	Architecture   string
	PackageManager string
}

ListPackage is a single package and the information about it

type OSInfo

type OSInfo struct {
	OS               string
	Distribution     string
	DistributionLike []string
	Version          string
	KernelRelease    string
	Architecture     string
	PackageManager   string
}

OSInfo gives some basic information about the system.

type PackageList

type PackageList struct {
	HostID uuid.UUID
	Time   *time.Time
	List   []ListPackage
}

PackageList holds a list of ListPackages and some additional metadata

Jump to

Keyboard shortcuts

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