osutils

package
v0.0.0-...-a87a751 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDebNotFound = fmt.Errorf("package not found")

Functions

This section is empty.

Types

type OsHelper

type OsHelper struct {
}

func NewOsHelper

func NewOsHelper() *OsHelper

func (OsHelper) GetArch

func (o OsHelper) GetArch() (string, error)

func (OsHelper) GetDebVersion

func (o OsHelper) GetDebVersion(name string) (string, error)

func (OsHelper) GetMk8sClusterId

func (o OsHelper) GetMk8sClusterId(path string) string

func (OsHelper) GetOsName

func (o OsHelper) GetOsName() (string, error)

func (OsHelper) GetServiceUptime

func (o OsHelper) GetServiceUptime(serviceName string) (time.Duration, error)

func (OsHelper) GetSystemUptime

func (o OsHelper) GetSystemUptime() (time.Duration, error)

func (OsHelper) GetUname

func (o OsHelper) GetUname() (string, error)

func (OsHelper) InstallPackage

func (o OsHelper) InstallPackage(packageName string, version string) error

func (OsHelper) UpdateRepo

func (o OsHelper) UpdateRepo(scriptPath string) error

Jump to

Keyboard shortcuts

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