package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev

# Functions

DefaultServiceUser returns the default service user.
FilesystemForDir returns information about the file system where the directory dirName is mounted.
GetRealUser returns a name of the current user.
GetSystemPackages queries the system for a set of installed packages.
HasInterface returns nil if the machine the method executes on has the specified network interface.
LookupUserByName finds a user by name.
LookupUserByUID finds a user by ID.
NetworkInterfaces returns the list of all network interfaces with IPv4 addresses on the host.
New returns a new instance of system information.
NewUser creates a new user with the specified name and group.
OSInfo obtains identification information for the host operating system.
ResolvFromFile reads the given resolv.conf file.
ResolvFromReader reads the given resolv.conf as an io.Reader.
UserFromOSUser returns a new user from the specified storage user.

# Constants

PackageLVM refers to logical volume management facilities on Linux.
RedHat identifies a RedHat Enterprise Linux system or one of its descent.

# Structs

FilesystemInfo groups a filesystem and usage statistics.
User describes a system user.

# Type aliases

OS aliases operating system info.