system

package
v0.0.0-...-69a8637 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copy a file from src to dst and can overwrite the destination file.

func EnableStartService

func EnableStartService(servicesNames []string)

func ExtractTarGz

func ExtractTarGz(gzipStream io.Reader, dir string) error

extractTarGz extracts a .tar.gz file from an io.Reader and writes the contents to the specified directory.

func FindFiles

func FindFiles(root string, targets []string) ([]string, error)

func InstallBin

func InstallBin(binFiles []string, destinationDir string)

func InstallSysPkg

func InstallSysPkg(pkgNames []string)

func MoveFile

func MoveFile(src, dst string) error

moveFile moves a file from src to dst and can overwrite the destination file.

func RemoveSysPkg

func RemoveSysPkg(pkgNames []string)

func TemplateFile

func TemplateFile(templatePath string, destinationPath string, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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