operatingsystem

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFirewallStatus

func CheckFirewallStatus(osType config.OperatingSystem) (bool, error)

func CheckIfRunningAsRoot

func CheckIfRunningAsRoot() error

func CheckLinuxSecurityStatus

func CheckLinuxSecurityStatus(osType config.OperatingSystem) (bool, error)

func DetectOS

func DetectOS() (config.OperatingSystem, error)

Detect which operating system WBI is running on

func DisableFirewall

func DisableFirewall(osType config.OperatingSystem) error

Disable local firewall on server

func DisableLinuxSecurity

func DisableLinuxSecurity() error

func EnableCodeReadyRepo

func EnableCodeReadyRepo(osType config.OperatingSystem, CloudInstall bool) error

Enable the CodeReady Linux Builder repository:

func EnableEPELRepo

func EnableEPELRepo(osType config.OperatingSystem) error

Enable the Extra Packages for Enterprise Linux (EPEL) repository

func EnableExtraRepo added in v0.0.39

func EnableExtraRepo() error

Enable the Extra Repo

func FirewallPrompt

func FirewallPrompt() (bool, error)

func InstallGdebiCore

func InstallGdebiCore() error

Installs Gdebi Core

func InstallPrereqs

func InstallPrereqs(osType config.OperatingSystem) error

func LinuxSecurityPrompt

func LinuxSecurityPrompt(osType config.OperatingSystem) (bool, error)

func PromptAndVerifyUser added in v0.0.26

func PromptAndVerifyUser() (string, bool, error)

func PromptCloud

func PromptCloud() (bool, error)

func PromptInstallPrereqs

func PromptInstallPrereqs() (bool, error)

func PromptUserAccount added in v0.0.26

func PromptUserAccount() (string, error)

PromptUserAccount prompts the user for the name of a local Linux user account to use for verifying the installation

func UpgradeApt

func UpgradeApt() error

Upgrades Apt

func UserLookup added in v0.0.26

func UserLookup(username string) (*user.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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