check

package
v0.0.35-0...-fad7822 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

package check provides various checks for the operating system that are necessary software to work, e.g. version of the kernel whether aufs is supported, etc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFS

func CheckFS(fs string) (bool, error)

Return a nil error if the kernel supports a given filesystem (like "aufs" or "overlay")

func CheckUserGroup

func CheckUserGroup(userName, groupName, uid, gid string) (u *user.User, err error)

CheckUserGroup checks if a user specified with userName has been created. If no user has been created - it will attempt to create one. It will also attempt to create a group specified with groupName.

func IsBtrfsVolume

func IsBtrfsVolume(dirPath string) (isBtrfs bool, err error)

IsBtrfsVolume determines if dirPath is located on BTRFS filesystem

func KernelVersion

func KernelVersion() (int, error)

func ParseMountsFile

func ParseMountsFile() (map[string]string, error)

ParseMountsFile reads and parses /proc/mounts Returns a map "mount point" -> "fs type"

Types

This section is empty.

Jump to

Keyboard shortcuts

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