sys

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TERM_WIDTH = 50

Functions

func CheckFileSize added in v0.0.41

func CheckFileSize(remoteSize int64, path string) bool

func CheckSumFile added in v0.0.41

func CheckSumFile(remoteChecksum string, path string) bool

func HandleSigKill

func HandleSigKill(done chan os.Signal)

func HandleTermChange

func HandleTermChange(sigwinch chan os.Signal)

func IsFileExists added in v0.0.28

func IsFileExists(path string) bool

func IsRootUser added in v0.0.50

func IsRootUser() bool

func IsRunningOnPod added in v0.0.26

func IsRunningOnPod() bool

func IsSystemUser added in v0.0.50

func IsSystemUser(name string) bool

func IsUser added in v0.0.50

func IsUser(name string) bool

func ManageStatusCmd

func ManageStatusCmd(cmd *exec.Cmd, err error) int

func PipeCmd

func PipeCmd(cmd1 *exec.Cmd, cmd2 *exec.Cmd, buffers ...io.Writer) int

func RunBufferedCmd added in v0.0.20

func RunBufferedCmd(cmd *exec.Cmd, out *bytes.Buffer) int

func RunBufferedShellCmd added in v0.0.47

func RunBufferedShellCmd(call string, out *bytes.Buffer) int

func RunCmd

func RunCmd(cmd *exec.Cmd) int

func RunInteractiveCmd

func RunInteractiveCmd(cmd string, withStderr bool, buffers ...*bytes.Buffer) int

func RunShellCmd

func RunShellCmd(call string) int

func RunSilentCmd added in v0.0.20

func RunSilentCmd(cmd *exec.Cmd) int

func UpdateTermSize

func UpdateTermSize() error

Types

type Xtract added in v0.0.2

type Xtract struct {
	// contains filtered or unexported fields
}

func NewXtract added in v0.0.2

func NewXtract(dir string, outFile string) *Xtract

func (*Xtract) AddBar added in v0.0.33

func (x *Xtract) AddBar(bar io.Writer)

func (*Xtract) UnBz2 added in v0.0.2

func (x *Xtract) UnBz2(dumpName string) bool

func (*Xtract) UnGzip added in v0.0.2

func (x *Xtract) UnGzip(dumpName string) bool

func (*Xtract) UnXz added in v0.0.2

func (x *Xtract) UnXz(dumpName string) bool

func (*Xtract) UnZip added in v0.0.2

func (x *Xtract) UnZip(dumpName string) bool

Jump to

Keyboard shortcuts

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